Skip to main content

Condition

Evaluates one or more conditions and routes the flow to the matching branch (true/false). Supports standard comparison operators.

Common parameters

ParameterTypeRequiredVariableDescription
modechoice (simple, visual, expression)YesNoCondition definition mode: simple rules, nested visual builder, or JavaScript expression. (Default: "simple")
defaultBranchchoice (true, false)NoNoBranch to follow if no condition matches (TRUE or FALSE). (Default: "false")
multiBranchModebooleanNoNoEnable 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.

ParameterTypeRequiredVariableDescription
conditionsarrayYesNoList 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.

ParameterTypeRequiredVariableDescription
conditionTreeobjectYesNoCondition 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.

ParameterTypeRequiredVariableDescription
expressionCodetextYesNoJavaScript 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").