0
Give me an example
of non boolean value that evaluates to falsey truthy
1 Resposta
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