Basic Comparisons
In EL the following comparison operators are supported:
- Less-than (< or lt)
- Greater-than (> or gt)
- Less-than-or-equal (<= or le)
- Greater-than-or-equal (>= or ge)
- Equal (== or eq)
- Not Equal (!= or ne)
Numeric
| EL Expression |
Result |
| \${5 < 7} |
${5 < 7} |
| \${5 lt 7} |
${5 lt 7} |
| \${4 > (6/2)} |
${4 > (6/2)} |
| \${4 > (6/2)} |
${4 > (6/2)} |
| \${6.0 >= 3} |
${6.0 >= 3} |
| \${6.0 ge 3} |
${6.0 ge 3} |
| \${4 <= 3} |
${4 <= 3} |
| \${4 le 3} |
${4 le 3} |
| \${2.0 == 2} |
${2.0 == 2} |
| \${2.0 eq 2} |
${2.0 eq 2} |
| \${(10*10) != 100} |
${(10*10) != 100} |
| \${(10*10) ne 100} |
${(10*10) ne 100} |