Skip to main content

Conditions

What this page is — the Conditions tab on a workflow step: a rule that lets the step run only when a value matches, what each operator compares, and what happens to a step that is skipped and to the steps after it.

What it is for — one workflow that adapts to the answers it is given, instead of three nearly identical workflows for three situations.

The problem it solves — without conditions, every step runs every time. A Human review step meant for large jobs stops small ones too, an email meant for new clients goes to existing ones, and AI credits are spent on steps whose result nobody needs.

Route: /org/ai-workflow-build/<id>/edit → a step → Conditions tab · Permission: Change your organisation's workflows: input form, steps, wiring, conditions and loops.


1. What a condition does​

A condition is a single test attached to one step: run this step only if a value compares in a certain way with something you type. It is checked at the moment the run reaches the step, so it can use the form's answers, the project, and the results of the steps that ran before it.

The test isThe step
TrueRuns as normal
FalseIs skipped. It shows as Skipped on the run's timeline, makes no AI call and costs nothing. The run moves on to the next step

There is no "else". To do one thing or another, give two steps opposite conditions.


2. Why you would use it​

  • Review only what needs review. Pause for the director only when the budget band is the largest.
  • Branch on an answer. One step writes for a first visit, another for a handover; the visit type decides which runs.
  • Skip work that would be wasted. Do not translate when the language chosen is English.
  • Save credits. A skipped AI step is not charged.

3. Setting one up​

  1. Open the step and choose Conditions on the tab rail.
  2. Tick Conditional Execution. Three fields appear.
  3. Variable — pick the value to test with the same picker as the Wiring tab: an input-form answer, a project or organisation value, an earlier step's result, or a custom value. See Wiring and variables.
  4. Operator — choose how to compare (section 4).
  5. Value — type what to compare with.
  6. Press Save Changes.

Untick Conditional Execution to remove the condition; the step then always runs.

Figure 1 — A condition on the Budget band answer: (1) the Operator list, which offers the five choices in the note.

4. Field reference — the operators​

Operator (as listed)Runs the step whenExample
EqualsThe value is exactly the text typedVisit type Equals Handover
Does Not EqualThe value is anything other than the text typedLanguage Does Not Equal English
ContainsThe text typed appears anywhere in the valueServices Contains Lighting
GreaterThan (>)The value sorts after the text typedVisit date GreaterThan (>) 2026-12-31
LessThan (<)The value sorts before the text typedVisit date LessThan (<) 2027-01-01

How the comparison works:

RuleWhat it means for you
Comparisons are exact, including capitalshandover does not equal Handover. Copy select options exactly as they were added
Greater and less compare as text, character by characterDates written year-month-day compare correctly. Plain numbers of different lengths do not: 9 counts as greater than 10. Compare numbers with the same number of digits, or ask with a select field instead
A multi-choice answer is a listUse Contains to ask whether one option was picked
A blank form field is an empty valueDoes Not Equal with an empty Value runs the step only when the field was filled in
A value that does not exist at all (for example, the result of a step that was skipped) matches nothingEquals and Contains are false, so the step is skipped; Does Not Equal is true, so it runs

There is no "does not contain" in the list. Use Does Not Equal when the whole value is known, or turn the logic round: put Contains on the step for the other case.


5. Skipped steps and the steps after them​

A skipped step produces no result. Any later step wired to it, such as {{steps.2.translated}}, gets no value from it — the AI step works without that text, and a utility saving it may save nothing. Check does not warn about this, because whether a step is skipped is only known during a run.

Plan for it in one of these ways:

ApproachWhen to use it
Give the dependent steps the same conditionThe later steps only make sense if the first one ran
Wire the later step to something that always existsFor example, the original form answer instead of the translation
Use two branches that each finish the jobA step for each case, each followed by its own save step with the same condition
Write the persona's instructions to cope with an empty value"If no translation is given, use the original text"

6. Conditions with other step settings​

SettingHow it combines
Step disabled (the switch on the step card)A disabled step never runs, whatever its condition
Human reviewA skipped review step does not pause the run
Steps inside a loopThe condition is not applied: a step inside a loop runs on every pass. To vary behaviour per pass, put the logic in the persona's instructions using {{loop.item}} — see Loops
DuplicateA copy keeps every condition
Read-only viewerConditions are not shown there; open the workflow in the builder to see them

7. Worked example: review only the big jobs​

Riverside Interiors' Client Proposal workflow asks for a Budget band with three options: Under 10,000, 10,000 to 50,000 and Over 50,000. The design director wants to review only the largest.

  1. Open the Director review step › Conditions. Tick Conditional Execution.
  2. Variable: [Single_select - Input] Budget band, which writes {{inputs.budget_band}}.
  3. Operator Equals, Value Over 50,000 — copied from the option, comma included.
  4. Save. A designer runs it for a small kitchen job: the timeline shows Director review as Skipped and the run completes without waiting. For a whole-house job the run pauses for review.

Later she adds a Send to client utility step after the review that uses the draft from step 1. Because the draft always exists, the new step needs no condition. Had it used the reviewer's edited version, she would have given it the same condition as the review.


8. Before this works​

RequirementWithout it
Change your organisation's workflows: input form, steps, wiring, conditions and loops.The Conditions tab is read-only
The value you test exists before the stepA condition on a later step's result never matches
Select fields with fixed optionsFree-text answers rarely match exactly
The step on the main sequenceInside a loop, conditions are not applied

9. Don't confuse this with…​

ThisIs not
A step conditionConditional Visibility on an input field, which only hides a question on the form — see Input form
A skipped stepA disabled step. Disabled is decided in the builder and applies to every run; skipped is decided per run
A skipped stepA failed step. A failure pauses the run for recovery; a skip does not — see Monitor a run

10. Troubleshooting​

SymptomCauseFix
The step is always skippedCapitals or spacing differ from the answer, or the variable points at a step that runs laterCopy the option exactly; check the variable's step number
The step always runsThe condition is on a step inside a loop, or Conditional Execution was not savedMove the step out of the loop, or save
GreaterThan (>) gives the wrong answer for numbersNumbers are compared as textPad to the same number of digits, or use a select field
A later step produced output with a gapThe step it was wired to was skippedGive it the same condition, or wire it to a value that always exists
A multi-choice test never matches with EqualsThe answer is a listUse Contains