BuildcordDocs

Run equation on variable

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

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

No longer in the picker

Change a number does the same with Set to and an equation as its amount. Flows that have this node keep working.

Settings

SettingWhat it does
Store inThe variable that receives the result.
EquationThe 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.

On this page