Ulrich Borchers

Greenhorn
+ Follow
since Jun 14, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ulrich Borchers

${not "45"}
is almost like the above one. So I guess it is seen as not(somethingNotKnown), thus returning a not(false) --> true.


Sounds reasonable, thanks.

Vishwanath Murthi wrote:As explained in the HFSJ,


Which page is it? Sometimes I wish, you could just hit <ctrl>+<f> in real books

Kathiresan Chinna wrote:Hi Some body,

{ not "45" } returns true.

Kathir



Thanks, Kathir. But can you tell me why it returns true or point me to some reading which shows how strings are evaluated as booleans?

My thinking was like this: ${ "45" } should be true, so ${ not "45" } must be false. But it is true. So I am a little confused by this.

Christophe Verré wrote:"Some Body Else",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly (obviously fake names are not allowed). Thank you.



Ok Christophe, I changed it.
Hi there, greetings to everybody since this is my first post around here.

Could somebody please explain why this evaluates to true:

balu balaji wrote:${not map.c} returns true



imo not "42" should evaluate to "false". Why "true" then?

Cheers.