getOperand()
ts
function getOperand(
operators,
arg,
variables): PrimitiveOperatorArg;Defined in: renderer/operations.ts:28
Resolves an operator argument into a primitive value.
This function evaluates the given argument based on its type:
- primitive → returned directly
- string → resolved as a variable reference
- operation → recursively evaluated via solveOperation
Parameters
| Parameter | Type | Description |
|---|---|---|
operators | Operators | Available operators |
arg | OperatorArg | Argument to resolve |
variables | Record<string, unknown> | Current variable state |
Returns
Resolved primitive value
Since
1.0.0
Author
Simon Kovtyk