Boolean values: Difference between revisions
Content added Content deleted
m (→{{header|Metafont}}: only true and false can be used) |
No edit summary |
||
Line 5: | Line 5: | ||
<lang Ada> type Boolean is (False, True);</lang> |
<lang Ada> type Boolean is (False, True);</lang> |
||
with Boolean lattice and relational operations defined on it. See [http://www.adaic.org/standards/1zrm/html/RM-A-1.html RM A.1]. |
with Boolean lattice and relational operations defined on it. See [http://www.adaic.org/standards/1zrm/html/RM-A-1.html RM A.1]. |
||
=={{header|AutoHotkey}}== |
|||
When an expression is required to evaluate to true or false (such as an IF-statement), a blank or zero result is considered false and all other results are considered true. Operators such as NOT/AND/OR/>/=/< automatically produce a true or false value: they yield 1 for true and 0 for false. A variable can be used to hold a false value simply by making it blank or assigning 0 to it. The words 'true' and 'false' are built-in variables containing 1 and 0. They can be used to make a script more readable. |
|||
=={{header|AWK}}== |
=={{header|AWK}}== |