Chooses one of two values from a strict boolean condition.
Use it when
Return one value when a condition is true and another value when it is false.
Inputs and output
- Condition is a required boolean. When True and When False accept any supported workflow value, including null.
- Result is the selected branch value.
Rules
The condition is never coerced. Both branch values must be supported workflow values.
Example
Condition false, When True "paid", and When False "pending" produces "pending".
Invalid inputs stop the workflow on this object and show a specific message describing what to change.
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | condition — Condition | boolean | yes |
| Input | whenTrue — When True | any | yes |
| Input | whenFalse — When False | any | yes |
| Output | result — Result | any | on success |
