Mathematical Operators
Operator Description
+ Add
- Subtract
* Multiply
/ Divide
Comparison Operators
Operator Description
> Greater Than
< Less Than
>= Greater Than or Equal
<= Less Than or Equal
= Equal
Boolean Operators
Operator Description
! not NOT
& and AND
| or OR
Operator Precedence
Operator precedence is divided into three groups as shown below. Multiple operators from the same group are evaluated left to right. You can use parenthesizes liberally to force a particular evaluation order as required.
Precedence Operators
Highest ! ()
* / &
Lowest + - > < >= <= = |
Supported functions
Operator Description
dt() The elapsed time interval, in seconds, since last iteration
sin(x) Trigonometric SIN function x is in radians
cos(x) Trigonometric COS function x is in radians
sqrt(x) Square root
min(x,y) lesser of x or y
max(x,y) greater of x or y
mod(x,y) Floating point modulus, remainder of x / y