EL Operators

<%-- div and mod are alternatives to / and % --%>
Arithmetic Operators Relational Operators
ExpressionResultExpressionResult
\${3+2-1}${3+2-1} <%-- Addition/Subtraction --%> \${1<2}${1<2} <%-- Numerical comparison --%>
\${"1"+2}${"1"+2} <%-- String conversion --%> \${"a"<"b"}${"a"<"b"} <%-- Lexical comparison --%>
\${1 + 2*3 + 3/4}${1 + 2*3 + 3/4} <%-- Mult/Div --%> \${2/3 >= 3/2}${2/3 >= 3/2} <%-- >= --%>
\${3%2}${3%2} <%-- Modulo --%> \${3/4 == 0.75}${3/4 == 0.75} <%-- Numeric = --%>
\${(8 div 2) mod 3}${(8 div 2) mod 3} <%-- Compares with "equals" but returns false for null --%> \${null == "test"}${null == "test"}
Logical Operators empty Operator
ExpressionResultExpressionResult
\${(1<2) && (4<3)}${(1<2) && (4<3)} <%--AND--%> \${empty ""}${empty ""} <%-- Empty string --%>
\${(1<2) || (4<3)}${(1<2) || (4<3)} <%--OR--%> \${empty null}${empty null} <%-- null --%>
\${!(1<2)}${!(1<2)} <%-- NOT -%> <%-- Handles null or empty string in request param --%> \${empty param.blah}${empty param.blah}