solveCondition()
ts
function solveCondition(
condition,
operators,
variables): boolean;Defined in: components/conditional.tsx:76
Evaluates a condition and returns a boolean result.
Parameters
| Parameter | Type | Description |
|---|---|---|
condition | ConditionValue | The condition to evaluate |
operators | Operators | Available operators for resolving operations |
variables | Record<string, unknown> | Current variable state |
Returns
boolean
true if the condition is satisfied, otherwise false
Remarks
Behavior depends on the type of condition:
- boolean → returned as-is
- number → converted using truthy/falsy rules
- string → resolved as a variable key
- Operation → evaluated via solveOperation
Since
1.0.0