Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Variables IF Variable
🔀 Variables

Branch on a variable value in RunMacro

What it does

The IF Variable command checks a variable against a condition (equals, contains, greater, empty, exists) and steers the workflow: true jumps to IF, false to ELSE.

When to use it

  • Only proceed when a variable meets a condition.
  • Handle differently based on a variable value.
  • Check whether a variable has data (exists/empty).

Configuration steps

  1. Add a Variables › IF Variable command.
  2. Choose the variable, the comparison, and the target value.
  3. (Optional) enable negate (NOT).
  4. Set IF/ELSE labels. Save.

Every option explained

Variable

The variable to check.

Comparison mode

Equals, Contains, Greater (number), Empty, Exists.

Target value + Negate (NOT)

The value to compare; enable NOT to invert the result.

IF label / ELSE label

If true jump to IF; otherwise jump to ELSE.

Real example

Example: continue only when OTP exists

  1. IF Variable otp, mode Empty, NOT on (i.e. not empty).
  2. IF label = has_otp for the fill step.
  3. ELSE = retry_otp to try again.

Tips & common mistakes

Use the Exists mode to ensure a variable was declared before using it.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.