Condition
Branch the workflow based on a boolean expression
system/condition — Branch the workflow based on a boolean expression.
Where it appears
The Condition block lives in the Logic & control group of the Workflow Builder.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
condition | conditions | Yes | — | Boolean expression evaluated against upstream node outputs. |
Operators: ===, !==, >, <, >=, <=, !, &&, ||
Methods: .includes(), .startsWith(), .endsWith(), .toLowerCase()
Helpers: containsAny, containsAll, isOneOf, isNoneOf, matches, isPresent, isEmpty |
| trueLabel | text | No | True | Display name for the branch taken when the condition evaluates to true. Shown on the canvas edge and in logs. |
| falseLabel | text | No | False | Display name for the branch taken when the condition evaluates to false. Shown on the canvas edge and in logs. |
Inputs and outputs
Inputs are the configurable fields above. The block produces these outputs:
Outputs
Reference an output downstream with <Condition.field>.
| Name | Type | Description |
|---|---|---|
condition | boolean | Condition result |
route | string | Selected route |
routeLabel | string | Route label |
Example
A minimal configuration for this block:
{
"type": "system/condition",
"config": {
"condition": "<PreviousStep.field>",
"trueLabel": "True",
"falseLabel": "False"
}
}Limits and failure modes
- Required field (
condition) must be set, or the block fails validation before it runs.