Command Reference: MATH.* Command Family
About the MATH.* Commands
This family of commands provide your scripts with the ability to perform arithmetic. In every case, the result of the operation is stored in the .RESULT special variable.
The MATH.* Commands
MATH.ADD Number [Number] MATH.SUB Number [Number] MATH.MUL Number [Number] MATH.DIV Number [Number]
These commands provide basic arithmetic, namely addition, subtraction, multiplication, and division. If the second parameter is not provided, then these commands assume they are operating on .RESULT .
MATH.AND Number [Number] MATH.OR Number [Number] MATH.XOR Number [Number]
These commands perform binary arithmetic, such as the binary AND, OR, or exclusive-OR (XOR). If the second parameter is not given, then these commands assume they are operating on .RESULT .
MATH.NOT Number
This command performs a binary negation (logical NOT) on a number. Unlike the other commands in this family, you must specify the number to perform the operation on.