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

Moderator: admin

Post Reply
admin
Site Admin
Posts: 10066
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

admin
Site Admin
Posts: 10066
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Guest

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

Post by Guest »

I think they mean when adding, substracting ... but not for equal

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

Post Reply

Who is online

Users browsing this forum: No registered users and 132 guests