Most of the programming problems can't be solved because you don't know what the exact problem is.
Defining your problem correctly leads you to the right solution.
Reading that important bit again, I really see no reason why the first statement ${bab eq 0} shouldn't be true. According to the JSP 2.0 spec, the empty string is pretty much treated as 0 in any numerical comparison (by the coercion rules of the operations, it is not 0 in non-numerical comparisons, so you have to be a bit careful there).Section 2.8.3 says "If A is null or empty string, return 0".
Most of the programming problems can't be solved because you don't know what the exact problem is.
Defining your problem correctly leads you to the right solution.
If A is null or empty string, return 0 in case of arithematic and relational operators and false in case of logical operaters
${infinity eq false} -- false
.In case of arithematic , inifinity act as 0
and
in case of logical (&& ,|| , not) , we can treat infinity as false as per above outputs , Please guide in case of relational operators
${infinity eq 0} </br> -- output is false , it should be true
${infinity eq false} -- output is false , it should be true
${infinity lt 5} -- false - it should be true , as zero less than 5
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|