# Run equation on variable

> Work out an equation and store the result in a variable.

Source: https://docs.buildcord.dev/nodes/variables-and-data/run-equation/

`data.equation` evaluates an equation and stores the answer in a variable.

> **Note: No longer in the picker**
>
> [Change a number](https://docs.buildcord.dev/nodes/variables-and-data/change-number) does the same with **Set to** and an equation as its amount. Flows that have this node keep working.

## Settings

| Setting | What it does |
| --- | --- |
| Store in | The variable that receives the result. |
| Equation | The equation, such as `{var.xp} * 2 + 10`. |

## Ways out

`out`. Turn on **If it fails** for a red way out.

## Notes

- Equations take numbers, `+ - * / %`, brackets and comparisons, plus `exp`, `ln`, `sqrt`, `abs`, `floor`, `ceil`, `pow`, `min`, `max` and `round`.
- To keep the answer for this run only, use [Work out an equation](https://docs.buildcord.dev/nodes/variables-and-data/work-out-equation).

## Related

- [Change a number](https://docs.buildcord.dev/nodes/variables-and-data/change-number)
