Node referenceLogic
CONDITIONAL
Branch the flow on a boolean condition.
What it does
Branch the flow on a boolean condition.
Inputs & outputs
| Input handle |
|---|
| value |
| Output handle |
|---|
| true |
| false |
Configuration
| Name | Type | Required |
|---|---|---|
| condition | string | Yes |
Example
How it works
CONDITIONAL reads the boolean value on its value input port and routes execution to the true or false output branch accordingly. If the incoming value is absent or not a boolean, it defaults to false. The condition field in the node's config holds an expression string (e.g. {{isMention}} == true) that upstream nodes resolve before reaching the CONDITIONAL — typically you connect the output of a NUMBER_CONDITION, STRING_CONDITION, AND, OR, or CHAINED_CONDITIONS node directly into the value input port.
Example
Scenario: A Slack Workflow sends a reply only when the incoming message is an @-mention, and logs a debug entry otherwise.
- A SLACK_TRIGGER fires on any message; its
isMentionoutput is a boolean. - Connect
isMention→valueon a CONDITIONAL node. - Wire the
truebranch to a SEND_SLACK node that posts an AI reply. - Wire the
falsebranch to a SCRIPT node that logs"Ignored non-mention".
SLACK_TRIGGER ──(isMention)──► CONDITIONAL ──true──► SEND_SLACK
└─false──► SCRIPT (log)