Expressions & Conditions
Expressions let you define rules that control how data flows through your workflow. They are used in Condition steps, Filter steps, and Transform steps.
Condition Step Expressions
A Condition step evaluates an expression and routes data down one of two paths: Yes (true) or No (false).
Examples:
- booking.total > 500 — Route high-value bookings to a special handling path.
- customer.email != "" — Check if the customer has an email before sending a notification.
- invoice.status == "overdue" — Only proceed if the invoice is past due.
Filter Step Expressions
A Filter step takes a list of items and outputs only the ones that match your expression.
Examples:
- zone.name == "North" — Keep only records in the North zone.
- payment.amount > 100 — Filter out small payments.
- booking.date >= today — Keep only future bookings.
Transform Step Expressions
A Transform step reshapes data by applying expressions to create new fields or modify existing ones.
Examples:
- fullName = firstName + " " + lastName — Combine name fields.
- totalWithTax = total * 1.08 — Calculate tax-inclusive amount.
- daysSince = daysBetween(createdAt, today) — Calculate elapsed days.
Operators
| Operator | Meaning | ||
|---|---|---|---|
| == | Equal to | ||
| != | Not equal to | ||
| > | Greater than | ||
| < | Less than | ||
| >= | Greater than or equal | ||
| <= | Less than or equal | ||
| && | AND | ||
| \ | \ | OR | |
| ! | NOT |
Tips
- Use the expression editor's autocomplete to see available fields from upstream steps.
- Test expressions with sample data before running the full workflow.
- Combine multiple conditions with && (AND) and || (OR) for complex routing logic.
On this page