Expression language supports a wide range of operators including arithmetic, relational and logical operators. EL allows you to apply those operators to the literal and variables forcalculations. Here is the list of operators with its alternative version.
Operator | Alternative | Meaning |
---|---|---|
[]
|
Collection member access
| |
·
|
Property access
| |
()
|
Grouping
| |
-
|
Unary Negation
| |
!
|
not
|
Logical not
|
Empty
|
Empty test
| |
*
|
Multiplication
| |
/
|
div
|
Division
|
%
|
mod
|
Modulo or division remainder
|
+
|
Addition
| |
-
|
Subtraction
| |
<
|
lt
|
Less than
|
>
|
gt
|
Greater than
|
<=
|
le
|
Less than or equal
|
>=
|
ge
|
Greater than or equal
|
==
|
eq
|
Equality
|
!=
|
ne
|
Inequality
|
&&
|
and
|
Logical and
|
||
|
or
|
Logical or
|
=
|
Assignment
| |
?:
|
Conditional operator
|
No comments:
Post a Comment