Operators
From Documentation
EL expressions provide the following operators:
Type | Description |
---|---|
Arithmetic | +, -[1], *, /, div, %, mod, -[2] |
Logical | and, &&, or, ||, not, !, empty[3] |
Relational[4] | ==, eq, !=, ne, <, lt, >, gt, <=, ge, >=, le |
Conditional | A ? B : C[5] |
- ↑ binary
- ↑ unary
- ↑ The empty operator is a prefix operation that can be used to determine whether a value is null or empty.
- ↑ Comparisons can be made against other values, or against boolean, string, integer, or floating point literals.
- ↑ Evaluate B or C, depending on the result of the evaluation of A.
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
- ? :
Version History
Version | Date | Content |
---|---|---|