0
false is boolean, isn't it?
7 ответов
+ 3
Yes, it is... ^_^
+ 3
All language
0 is as 'false'/'null'
Think about binary is enough...
+ 3
:/
Hm....
It Look like ruby give a big problem to me a lot
+ 2
A boolean variable is a variable wich can have two values : true or false.
False == 0
True == every number but not 0
true && false == false
true || false == true
Ask if you have any question.
+ 2
Be aware !
0 is NOT false in ruby (unlike every other programming language)
only false and nil evaluates as false.
https://repl.it/JPxw/0
0
Why then ruby evaluates it to falsey?
0
true