Boolean values: Difference between revisions
Content added Content deleted
imported>KayproKid m (→{{header|S-BASIC}}: fixed minor formatting issue) |
imported>KayproKid |
||
Line 2,464: | Line 2,464: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
In this case, <code>0.bool</code> is false, and <code>n.bool</code> with n not equal to 0 is true. |
|||
=={{header|Scala}}== |
=={{header|Scala}}== |
||
Booleans in Scala are given by the literals <code>true</code> and <code>false</code>, case sensitive, which are the only instances of the class <code>Boolean</code>. |
Booleans in Scala are given by the literals <code>true</code> and <code>false</code>, case sensitive, which are the only instances of the class <code>Boolean</code>. |