solveOperation()
ts
function solveOperation(
operators,
operation,
variables): OperatorReturn;Defined in: renderer/operations.ts:60
Evaluates an operation using the provided operators and variables.
This function resolves all arguments of the operation and executes the corresponding operator function.
Parameters
| Parameter | Type | Description |
|---|---|---|
operators | Operators | Available operator functions |
operation | OperationDefinition | Operation to evaluate |
variables | Record<string, unknown> | Current variable state |
Returns
Result of the evaluated operation
Remarks
- Arguments are resolved via getOperand
- Supports nested operations (recursive evaluation)
Since
1.0.0
Author
Simon Kovtyk