Boolean values: Difference between revisions

m (added whitespace before the TOC (table of contents), added whitespace.)
Line 724:
For conditionals, numeric variables (including poly variables
with a number in them), evaluate to true or false based on
their value.
 
Use the defined() buildin to test if a variable is defined.
Line 744:
if (str1) {puts("fifth test str1 is true");} // This should print
if (str2) {puts("sixth test str2 is false");} // This should not print</lang>
 
 
=={{header|LiveCode}}==
Anonymous user