Page 1 of 1

About Question com.enthuware.ets.scwcd.v5.2.179 :

Posted: Mon Feb 20, 2012 5:12 pm
by admin
In a question you say that ${none eq 0} will be evaluated to true because the value of the attribute none is "". I've tested it and it prints false.

Re: About Question com.enthuware.ets.scwcd.v5.2.179 :

Posted: Mon Feb 20, 2012 5:12 pm
by admin
As per Section 1.18.3 of Expression Language Specification:
Coerce A to Number type N
¦ If A is null or "", return 0.
Therefore, the given answer is correct.

HTH,
Paul.

Re: About Question com.enthuware.ets.scwcd.v5.2.179 :

Posted: Sat Feb 25, 2012 8:47 am
by Guest
I think they mean when adding, substracting ... but not for equal

${"" eq 0 } prints false
${"" + 10 } prints 10
${"" * 10 } prints 0