Expression
Routes the flow on a boolean expression you assemble from comparisons—no code. Reach for it for the ordinary case: checking a status, comparing a count, testing whether a field is empty. Routes to true when the expression evaluates true, otherwise to false.
Fields
| Field | Description |
|---|---|
| Expression | The boolean expression, built from the comparisons and combinators below. |
Comparisons
A Comparison tests two values—a Left, an Operator, and a Right—each of which can be a variable or a literal.
| Operator | True when… |
|---|---|
| Equals (==) | The two values are equal. |
| Not Equals (!=) | The two values differ. |
Greater Than (>), Less Than (<) | One number is greater or less than the other, or one moment is later or earlier than the other. |
Greater Or Equal (>=), Less Or Equal (<=) | One number is at least, or at most, the other; likewise for two moments. |
| Contains | The left value contains the right one. |
| Matches Regex | The left value matches a regular expression. |
The ordering operators read both values as numbers when they can, and otherwise as moments: epoch milliseconds or an ISO-8601 timestamp with an offset, in any mix. That is how a condition tests whether an upstream date has passed—compare it against the run context's Now. A timestamp that names no zone of its own is not compared, since nothing here says which zone it was written in.
A Unary Comparison tests a single Operand:
| Operator | True when… |
|---|---|
| Is Empty, Is Not Empty | The value is, or is not, empty. |
| Is Truthy, Is Not Truthy | The value is, or is not, truthy. |
Combinators
| Combinator | True when… |
|---|---|
| All Of | Every condition in its Conditions list is true. |
| Any Of | Any condition in its Conditions list is true. |
| Not | The single Condition inside it is false. |
Combinators nest, so an expression can go as deep as the logic needs. The editor shows a readable preview of the whole expression as you build it.
What later steps see
The incoming payload, passed through unchanged on whichever path was chosen.