Condition
Evaluates one or more conditions and routes the flow to the matching branch (true/false). Supports standard comparison operators.
Common parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
mode | choice (simple, visual, expression) | Yes | No | Condition definition mode: simple rules, nested visual builder, or JavaScript expression. (Default: "simple") |
defaultBranch | choice (true, false) | No | No | Branch to follow if no condition matches (TRUE or FALSE). (Default: "false") |
multiBranchMode | boolean | No | No | Enable multi-branch mode (more than 2 possible outputs). (Default: false) |
Parameters by mode
simple — Simple Rules
List of conditions evaluated sequentially with AND/OR operators. Each rule compares a left value to a right value via an operator.
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
conditions | array | Yes | No | List of condition rules. Each rule contains: left value (variable or literal), comparison operator, right value, and logical operator (AND/OR) to combine with the next rule. |
visual — Visual Builder
Nested condition tree with AND/OR groups. Allows creating complex logic without code.
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
conditionTree | object | Yes | No | Condition tree with nested AND/OR groups containing rules or sub-groups. |
expression — Expression
Custom JavaScript expression returning true or false. Access to variables from previous blocks.
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
expressionCode | text | Yes | No | JavaScript code evaluated at runtime. Must return a boolean (true/false). |
Output
Output variable : conditionResult
{
"result": false,
"branch": "..."
}
Example
Route the flow based on a status field value.
Input :
{"status": "active"}
Output :
{"result": true, "branch": "true"}
Tip
The output field is result (boolean), not matched. Use {{conditionResult.result}} for the boolean value and {{conditionResult.branch}} for the branch name ("true" or "false").