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

Calculate a math expression into a variable in RunMacro
What it does
The Calculate command evaluates a math expression (add, subtract, multiply, divide, floor-divide, modulo, exponent) and stores the result in a variable. Reference numeric variables in the expression with [var_name].
When to use it
- Increment/decrement a counter in a loop.
- Compute a sum, difference, or derived value.
- Process numbers before filling a form.
Configuration steps
- Add a Variables › Calculate command.
- Set the result variable.
- Enter the expression, using
[var_name]for numeric variables (e.g.[count] + 1). - Save.
Every option explained
Real example
Example: increment a counter each loop
- Declare Variable
count= 0. - In the loop: Calculate
count=[count] + 1. - Use
{count}to show the run count.
Tips & common mistakes
In expressions, reference variables with
[name] (square brackets), unlike {name} used in text fields.
RunMacro