Skip to content

Choose paths with conditions and cases

Build if/else rules, match values to cases and stop a path.

What it is

Conditions choose which connected output a run follows. If / else checks ordered rule groups; When the value is… chooses a path by matching a value.

Before you start

Connect the condition after the step that supplies its data. Decide what each successful condition should do and what should happen when none match.

Steps

  1. Add If / else from Conditions and timing.
  2. Select its block.

If/else rules with an earlier AI category value

In this image: 1. Set the rules for the ordered branches.

  1. Choose All rules or Any rule for the first path.
  2. Insert the left-hand value with {x}.
  3. Choose the comparison operator.
  4. Enter the value to compare when the operator requires one.
  5. Select Add a rule for another comparison in that path.
  6. Select Add “else if” for another ordered path.
  7. Connect each output to its next step.
  8. Connect Else (none of the above) to the fallback action.

Tips

Within working hours? has two exits, Open and Closed, by your days and hours in the account time zone (empty days mean Monday to Friday). Only once per … lets the same value through once per day, week, month or year; repeats take the Repeat exit. Try it never uses up the first time. Only the first matching If/Else-if path is followed. Operators cover equality, text contains/starts/ends, numeric greater/less and empty/not empty. AI decides (a yes/no question) evaluates the left text against your right-hand question and uses AI credits. For known categories, use When the value is…, fill Value to check, add Cases and connect Otherwise. A case can contain comma-separated alternatives. Stop ends its own path. Unconnected outputs end naturally.

Common problems

Wrong branch chosen: check path order, All rules versus Any rule and the actual input shown in the run. Empty check asks for no comparison text: that operator only needs the value being checked. No path continues: connect the matching output or fallback. Loop error: remove arrows that lead back through the same steps; a run stops after its step limit.

Related articles