MATH
Syntax: #MAT varname expression class
Related: #ADD
Assigns the value of the expression to the given variable. Expressions can contain numeric, logical, and text functions. Any variables in the expression are also expanded.
You can optionally specify the class containing the variable, or to create a new variable in, with the class parameter.
Do not specify the @ at the beginning of the varname
MATH examples
#MATH test (1+3)*4
assigns the value of 16 to the variable @test.
#MATH test2 @test-4
if @test has the value of 16, the value of 12 is assigned to @test2
#ALIAS add {#MATH value %1+%2}
add 3 4
the value of 7 is assigned to the variable @value |