Anonymous user
Boolean values: Difference between revisions
→{{header|JavaScript}}: added KS
(→{{header|Go}}: explain implication for conditionals) |
(→{{header|JavaScript}}: added KS) |
||
Line 254:
(source: [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMAScript Language Reference])
=={{header|KonsolScript}}==
The Boolean type has two values: <code>true</code> and <code>false</code>
The following table shows the result of type conversions to boolean:
* Number: the number <code>0</code> is <code>false</code>; otherwise <code>true</code>
* String: the empty (zero-length) string is <code>false</code>; otherwise <code>true</code>
=={{header|Logo}}==
|