- Before this lesson
- Numbers and calculations
- You will learn to
- Add an If Condition and fill both branches
- Choose the right operator
- Read which branch ran in the log
- Sample files
- conditions-and-loops.station.json
If Condition
If Condition compares one variable with a value:
- Variable: the variable's name, without braces.
- Operator: equals, not equals, greater than, less than, contains, starts with, ends with, is empty, is not empty.
- Value: what to compare with. It can contain
{{other}}variables.
If the comparison is true, the steps under Then run; otherwise the steps under Else. Either branch can be empty. Use Add step here inside a branch to fill it.

Choosing the operator
| Question | Operator |
|---|---|
| Is the status Paid? | equals |
| Is the amount over 1000? | greater than |
| Does the subject mention invoice? | contains |
| Did the user leave the field empty? | is empty |
Seeing what happened
During a run the log records which branch ran (for example If rest: Then) at debug level, and the workflow view marks the steps that ran.
Activities in this lesson
Saved only in this browser.
Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.