Boolean values: Difference between revisions
Content added Content deleted
(→{{header|Python}}: None is False.) |
|||
Line 123: | Line 123: | ||
<pre>% if {""} then {puts true} else {puts false} |
<pre>% if {""} then {puts true} else {puts false} |
||
expected boolean value but got ""</pre> |
expected boolean value but got ""</pre> |
||
Test for the boolean value of a string can be stuff like |
|||
if {string is false $string} ... |
|||
which will test for "no" or "NO" or "0" or "False" or ... |