Operators
The following table lists the operators that you can
use:
Category | Description |
---|---|
Arithmetic |
|
Logical |
|
Relational | You can use the following operators to compare against other values, or against
boolean, string, integer, or floating point literals.
|
Empty |
|
Conditional | ? For example, |
Operator Precedence
The precedence of operators highest to lowest, left to right is as follows:
- [ ]
- ( ) - Used to change the precedence of operators
- - (unary)
not ! empty
- * / div % mod
- + - (binary)
- < > <= >= lt gt le ge
- == != eq ne
- && and
- || or
- ? :