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

Condition block: Else and End If in RunMacro
What it does
The Else and End If pair form the condition block used with IF commands (like Find Image, IF Window, IF Clipboard). Commands between IF and Else run when true; between Else and End If run when false. End If marks the block end.
When to use it
- Run two different branches for true/false.
- Cleanly close an IF block so later steps continue normally.
- Pair with any command that yields true/false (Find Image, IF Window, IF File...).
Configuration steps
- Add a condition command (e.g. Find Image) — it opens the IF block.
- Put the commands for the true case right below.
- (Optional) add Else then the commands for the false case.
- Finish with End If. Save.
Every option explained
Real example
Example: click if found, else log
- Find Image of the "OK" button (opens the IF block).
- True branch: Mouse Click.
- Else → false branch: log/exit.
- End If to close the block.
Tips & common mistakes
Each IF block should have an End If so RunMacro knows the boundary; nested blocks must close in order.
RunMacro