Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Level 3 · Automation fundamentals

Conditions

Let a workflow decide with If Condition: compare a variable with a value and run the Then or the Else branch.

Intermediate≈ 15 min (estimate)Windows, macOSWorkflow engine-tested
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.

If Condition inside a loop
An If Condition named Is it Bo? with its Then and Else branches, and its properties on the right.

Choosing the operator

QuestionOperator
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

If Condition · Log · Message Box

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.