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. |
Equals and Not Equals compare two pieces of text as text, and otherwise compare numbers as numbers, so 5 equals "5". Numbers are compared exactly however many digits they have, so two long IDs that differ only in their last digit are not equal.
The ordering operators read both values as numbers when they can, and otherwise as moments: an epoch number, or an ISO-8601 or RFC 1123 timestamp with an offset, in any mix. An epoch number below 100,000,000,000 is read as seconds and a larger one as milliseconds. 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.