Boolean values: Difference between revisions

m
Re-located the UNIX Shell section for the sake of alphabetization.
m (→‎{{header|Bash}}: Renamed to UNIX Shell)
m (Re-located the UNIX Shell section for the sake of alphabetization.)
Line 82:
=={{header|AppleScript}}==
AppleScript has built-in boolean keywords <code>true</code> and <code>false</code>. Numbers do not work in place of boolean expressions.
 
=={{header|UNIX Shell}}==
 
The values ''true'' and ''false'' are defined, respectively, as a return code of 0 and a return code of greater-than zero. While there are built-in functions for each of these values, booleans are most commonly the result of a test or a process termination.
 
<lang Bash>true && echo "true" || echo "false"</lang>
 
=={{header|BASIC}}==
Line 598 ⟶ 592:
=={{header|Trith}}==
The boolean constants are ''true'' and ''false''. In a conditional context, the only false values are ''false'' and ''nil'' -- every other value is true.
 
=={{header|UNIX Shell}}==
 
The values ''true'' and ''false'' are defined, respectively, as a return code of 0 and a return code of greater-than zero. While there are built-in functions for each of these values, booleans are most commonly the result of a test or a process termination.
 
<lang Bash>true && echo "true" || echo "false"</lang>
 
=={{header|Visual Basic}}==