[Logo]
Forums Register Login
Doubt in EL
referring to EL in HFSJ(page no. 395), it is given that, "In logical expressions, EL treats the unknown variable as "false".
The example given for this is:

${7 < foo} false

according to this, it will get evaluated as

${7 < false}

How would you compare this ???

Another example given is

${true and foo} false

It wil get evaluated as

${true and false} false

This is OK.

But wht about the previous one ?
Hi,

For unknown variables, in numeric comparisions it is treated as 0.

thanks
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 376 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 18, 2018 14:04:28.