Jump to content

Boolean values: Difference between revisions

Forth
(Forth)
Line 48:
> if (bowlian) { "a" } else { "b" }
# value: "a"</lang>
 
=={{lang|Forth}}==
In conditionals, zero is false, non-zero is true. There are predefined constants for the canonical forms (all bits set/clear).
<lang forth>
TRUE . \ -1
FALSE . \ 0
</lang>
 
=={{header|Haskell}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.