Skip to main content

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​

FieldDescription
ExpressionThe 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.

OperatorTrue 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.
ContainsThe left value contains the right one.
Matches RegexThe 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:

OperatorTrue when…
Is Empty, Is Not EmptyThe value is, or is not, empty.
Is Truthy, Is Not TruthyThe value is, or is not, truthy.

Combinators​

CombinatorTrue when…
All OfEvery condition in its Conditions list is true.
Any OfAny condition in its Conditions list is true.
NotThe 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.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.