Give me an example | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Give me an example

of non boolean value that evaluates to falsey truthy

19th Jan 2017, 6:54 PM
stephen haokip
stephen haokip - avatar
1 Answer
0
You have tagged Ruby, I have no idea of ruby ... saying that, in normal logic there are plenty of ways to do so, just think of the (==) operator. (I am sure you can think of other ones yourself ;)) your example: (1==1) <=> True (1==0) <=> False
19th Jan 2017, 7:10 PM
Abraham Soeyler
Abraham Soeyler - avatar