condition is the thinnest predicate node — a single boolean expression with two outbound paths: true and false.
Configuration
| Field | Notes |
|---|---|
expression | Boolean expression evaluated against the run context. |
trueLabel / falseLabel | Canvas labels for the outbound handles. |
Edges
Edges from acondition carry sourceHandle: "true" or sourceHandle: "false".
When to use vs rule
| condition | rule | |
|---|---|---|
| Outcomes | Exactly two | Many, plus else clause |
| Output | None (pure routing) | Named output fields |
| Best for | Single yes/no gate | Multi-outcome lookups |
condition is a stripped-down convenience — every condition can be expressed as a rule with two conditions. The shorthand keeps the canvas readable on simple guards.