Boolean values: Difference between revisions
Content added Content deleted
(→{{header|Perl}}: ++ octave) |
(→{{header|Ruby}}: ++ R) |
||
Line 185: | Line 185: | ||
True |
True |
||
>>> </lang> |
>>> </lang> |
||
=={{header|R}}== |
|||
Similarly to Octave, R uses <tt>TRUE</tt> and <tt>FALSE</tt>, kept in variable of class logical, which is silently casted to 1 (TRUE) or 0 (FALSE) if used as numeric value. So, it is true even the opposite: the value 0 can be used as FALSE, and non-zero numbers as TRUE. |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |