Skip to main content

Math Expressions

The Evaluate Math Expression and If Math Expression events allow mathematical expressions to be used for performing calculations.

If Math Expression
e.g. $health >= 0...
Add Event

Expressions allow you to use many mathematical operations such as:

  • + add
  • - subtract
  • * multiply
  • / divide
  • == Equal to
  • != Not equal to
  • >= Greater than or equal to

You are also able to use the following functions

  • min(a, b) return the minimum of two values a and b
  • max(a, b) return the maximum of two values a and b
  • abs(a) return the absolute value of a

You can use variables in expressions by typing $ and searching for the variable's name.