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

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
- Add a Variables › IF Variable command.
- Choose the variable, the comparison, and the target value.
- (Optional) enable negate (NOT).
- Set IF/ELSE labels. Save.
Every option explained
Real example
Example: continue only when OTP exists
- IF Variable
otp, mode Empty, NOT on (i.e. not empty). - IF label =
has_otpfor the fill step. - ELSE =
retry_otpto try again.
Tips & common mistakes
Use the Exists mode to ensure a variable was declared before using it.
RunMacro