Boolean values: Difference between revisions

Content added Content deleted
(→‎{{header|AWK}}: Link to current URI of manual of gawk.)
Line 75: Line 75:


=={{header|AWK}}==
=={{header|AWK}}==
There is not keyword for true or false in awk. In awk, any nonzero numeric value or any nonempty string value is true. Any other value (zero or the null string "") is false. By these rules, the string constant "0" is really true, because it is not null.


There is no keyword for true or false in awk. In awk, any nonzero numeric value or any nonempty string value is true. Any other value (zero or the null string "") is false. Values containing only zeros may produce true or false depending on whether they are obtained from the datasource or by assignment, and different results may be obtained according to which version of awk is being used.
* Reference: [http://www.gnu.org/software/gawk/manual/html_node/Truth-Values.html#Truth-Values Truth Values], from manual of [[gawk]]

* Reference: [http://awk.freeshell.org/truth AWK Truth values]


=={{header|AppleScript}}==
=={{header|AppleScript}}==