Hit Count: <%= hitCount++ %>
someint1 = <%= someint1 %>
someint2 = <%= someint2 %>
somefloat1 = <%= somefloat1 %>
somefloat2 = <%= somefloat2 %>
EL Type | EL Expressions | Result |
---|---|---|
Integer Arithmetic | \${someint1 + someint2 - someint1 * someint2 mod someint1} | ${someint1 + someint2 - someint1 * someint2 mod someint1} |
Floating Point Arithmetic | \${somefloat1 + somefloat2 - somefloat1 * somefloat2 / somefloat1} | ${somefloat1 + somefloat2 - somefloat1 * somefloat2 / somefloat1} |
Logical Operations | \${(someint1 < someint2) && (someint1 <= someint2) || (someint1 == someint2) && !Boolean.FALSE} | ${(someint1 < someint2) && (someint1 <= someint2) || (someint1 == someint2) && !Boolean.FALSE} |
Indexing Operations |
\${quoteData3.symbol} \${quoteData[2].symbol} \${quoteData4[symbol]} \${header[host]} \${header.host} |
${quoteData3.symbol} ${quoteData[1].symbol} ${quoteData4[symbol]} ${header[host]} ${header.host} |
Variable Scope Tests |
\${(quoteData3 == null) ? null : quoteData3} \${(noSuchVariableAtAnyScope == null) ? null : noSuchVariableAtAnyScope} |
${(quoteData3 == null) ? null : quoteData3} ${(noSuchVariableAtAnyScope == null) ? null : noSuchVariableAtAnyScope} |