MATH
- Syntax: #MAT variable expression
- 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.
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