
MathOperationPerforms: [c] = [a] [operator] [b]
This handler performs an operation on two parsed variables, and stores the result in a third variable. You specify the operands in the properties 'a' and 'b'. This handler will try to lookup and parse variables named by the 'a' and 'b' properties. If a variable by that name does not exist, the handler will try to parse the property itself, assuming you entered a fixed number. If any parsing fails, the operand is set to zero.
Use the 'c' property to set the name of the variable where the result should be stored.
All variables are parsed and processed as double floating-point numbers.
Remember that some rounding errors can appear in floating-point processing.
Set the 'roundDownToInt' property to "true" if you want to ensure
the result is stored as an integer instead of a floating point number.
You specify the type of operation in the 'operator' property. The following operators are supported:
| + | Add |
|---|---|
| - | Subtract (a-b) |
| * | Multiply |
| / | Divide (a/b) |
| % | Modulus (a%b) |
| ^ | Exponent (a^b) |
| min | The lesser of the two values |
| max | The greater of the two values |
If the 'operator' property is not one of the above, the handler will be disabled during initialization. If there is a division-by-zero error, the result is set to "ERROR"