Skip to content

IF Condition

IF Condition node panel in English, with the condition builder and the true and false branches.

IF Condition routes the flow into a true or a false branch.

Purpose and use: Evaluate configured conditions to choose one of two branches.

Configuration: Optional matchType (all or any, default all); optional conditions array. Each condition has field, operator, and value; supported operators are equals, not_equals, contains, starts_with, ends_with, greater_than, less_than, is_empty, is_not_empty, and exists. The editor default uses {{ $json.status }} with equals.

Input/output and routing: One input, outputs true and false. Only the selected branch is activated. Output carries conditionMet and original input. Connect outgoing edges using the exact branch handles.

Expressions: Condition field and value accept workflow expressions; all requires every condition and any at least one.

Errors/effects: Strict/versioned unresolved expressions can fail the step; onError governs node failure. This node makes no external write. A branch can lead to side-effecting nodes, so review both routes.

Example configuration — fields validated against the 1.1.1 node schema; replace the identifiers with your own: {"matchType":"all","conditions":[{"field":"{{ $trigger.priority }}","operator":"equals","value":"high"}]}. Expected result: true is the active handle when the condition matches, false otherwise.