Boolean values

From Rosetta Code
Revision as of 17:46, 10 July 2009 by rosettacode>Glennj (Created page with '{{task|Basic language learning}} What values are true and false? =={{header|Ruby}}== The only values in Ruby that are false are: <code>false</code> and <code>nil</code>. They h…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Boolean values
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 constants true and TRUE) is true.