Condition

Send the conversation down different paths depending on variables, answers, tags and the time.

On this page

Checks variables and takes the first branch whose conditions hold. It doesn't send anything and doesn't wait: the run goes straight on.

The Condition step's settings

Branches

A condition has one or more branches, checked from top to bottom; the first one that matches is taken. When none does, the run follows Otherwise. Move up and Move down change the order.

Each branch has a name (shown on its output) and one or more conditions, joined by all conditions match (and) or any condition matches (or). A branch with no conditions never matches.

Conditions

A condition compares a Variable (a flow variable, or a built-in like contact.tags or sys.weekday) with a Value, which can itself contain variables.

ComparisonTrue when
is / is notThe values are (not) equal. Text compares ignoring case and accents; numbers, yes/no and dates compare by value (8 equals 8.0).
containsText: the value appears in it. A list (such as contact.tags): one of its items is the value.
is greater than / is less thanBoth sides are numbers, or both are dates, and the order holds. Otherwise false.
is setThe variable has a value (not empty).
matches patternThe value is a regular expression that matches, ignoring case.

A variable that was never set counts as empty: it equals only an empty value, and contains, is greater than, is less than and matches pattern are false for it.

Outputs

OutputWhen
One per branchIts conditions hold, and no branch above it matched.
OtherwiseNo branch matched.

Examples

ToBranch condition
Send big groups to the teamparty_size is greater than 7
Treat customers already tagged VIP differentlycontact.tags contains vip
Answer differently at weekendssys.weekday is sat, any condition matches sys.weekday is sun
Skip a question you already have the answer toemail is set
Recognise an order numbersys.input matches pattern ^\d{6}$

Still stuck?

Ask us. We read every message.

Privacy