Boolean values
Boolean values
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
What values are true and false?
Ruby
The only values in Ruby that are false are: false
and nil
. They have synonyms FALSE
and NIL
.
Everything else (including the number 0
and the empty string) is true. Constants true
(and TRUE
) exist.