Operators"
From Documentation
m |
|||
Line 38: | Line 38: | ||
| | | | ||
* Properties of variables are accessed using the . operator and can be nested arbitrarily. | * Properties of variables are accessed using the . operator and can be nested arbitrarily. | ||
+ | * The value of a map can be accessed by using the . operator. | ||
|} | |} | ||
<blockquote> | <blockquote> |
Revision as of 03:06, 25 November 2010
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 precedence of operators highest to lowest, left to right is as follows:
- [] .
- ()[1]
- - [2] not ! empty
- * / div % mod
- + - [3]
- < > <= >= lt gt le ge
- == != eq ne
- && and
- || or
- ? :
Version History
Version | Date | Content |
---|---|---|