Operators"
From Documentation
m |
|||
Line 45: | Line 45: | ||
</blockquote> | </blockquote> | ||
− | The precedence of operators highest to lowest, left to right | + | The relative precedence levels of operators from the highest to lowest, left to right are as follows: |
* [] . | * [] . |
Revision as of 04:54, 3 August 2011
EL expressions provide the following operators[1]:
Type | Operators | Description |
---|---|---|
Arithmetic | +, -[2], *, /, div, %, mod, -[3] |
|
Logical | and, &&, or, ||, not, !, empty |
|
Relational | ==, eq, !=, ne, <, lt, >, gt, <=, ge, >=, le |
|
Conditional | A ? B : C | It evaluate B or C, depending on the result of the evaluation of A. |
Index | [] |
To evaluate expr-a[expr-b], evaluate expr-a into value-a and evaluate expr-b into value-b. If either value-a or value-b is null, return null.
|
Member | . |
|
- ↑ The information is from JSP Tutorial.
- ↑ binary
- ↑ unary
The relative precedence levels of operators from the highest to lowest, left to right are as follows:
- [] .
- ()[1]
- - [2] not ! empty
- * / div % mod
- + - [3]
- < > <= >= lt gt le ge
- == != eq ne
- && and
- || or
- ? :
Version History
Version | Date | Content |
---|---|---|