Skip to Content

Condition & Switch nodes

The Logic category contains two nodes for conditional branching:

NodeDescription
ConditionBranch based on a condition (two outputs: true/false)
SwitchMulti-way branching based on value (multiple named outputs)

Condition node

The Condition node evaluates an expression and routes execution to one of two paths: True or False.

When to use

  • Route based on a variable value (e.g., “is priority high?”)
  • Check if a previous node returned data or an empty result
  • Gate access to a section of the workflow

Configuration

Click the Condition node to open its configuration panel.

Condition node configuration showing condition type, variable, operator, threshold, and branch labels
Condition node configuration showing condition type, variable, operator, threshold, and branch labels
SettingTypeDescription
Condition TypeToggle buttons (Simple / Expression / Code)Simple uses UI fields; Expression accepts free-form logic; Code allows Python/JS
VariableText field (supports {{vars/fn/cfg}})The variable to evaluate
OperatorComboboxEquals, Not Equals, Contains, Greater Than, Less Than, Is Empty, Is Not Empty
ThresholdText field (supports {{variable}} placeholder)The value to compare against
True Branch LabelText field (default: Yes)Label shown on the True output edge
False Branch LabelText field (default: No)Label shown on the False output edge
Result VariableText field (default: condition_result)Stores the boolean evaluation result

Edge significance

The Condition node has two output edges:

  • Yes (True) — taken when the condition evaluates to true
  • No (False) — taken when the condition evaluates to false

Switch node

The Switch node routes execution to one of multiple named paths based on a value — like a multi-way if/else.

When to use

  • Route by category (e.g., “billing”, “technical”, “sales”)
  • Handle multiple status codes or types
  • Any scenario with more than 2 possible outcomes

Configuration

Click the Switch node to open its configuration panel.

Switch node configuration showing switch variable, case sensitive toggle, cases list, and default case
Switch node configuration showing switch variable, case sensitive toggle, cases list, and default case
SettingTypeDescription
Switch VariableText field (supports {{variable}} placeholder)The value to match against
Case sensitiveCheckbox (default: checked)Whether string comparisons are case-sensitive
CasesList + “Add Case” buttonEach case is expandable with a match value and label
Default CaseEnable checkbox + text field (default: default)Fallback path if no case matches

Edge significance

The Switch node has N+1 output edges — one for each case plus the default:

  • Case 1, Case 2, etc. — each labeled with the case value
  • Default — taken when no case matches
💡

Use a Quick Prompt node before a Switch node to classify input into categories, then route each category to a different branch.

Next

Agent Call node →