Difference between revisions of "True"
From Wiki
(fixed see also link) |
|||
Line 1: | Line 1: | ||
− | + | {{header|Constant|ro|A constant that represents boolean true. | |
− | + | ||
− | + | ||
− | + | ||
− | {{ro | + | |
− | + | ||
− | A constant that represents boolean true. | + | |
The constant <tt>#true</tt> is used to assign or compare a variable or an expression with the boolean ''true'' value. | The constant <tt>#true</tt> is used to assign or compare a variable or an expression with the boolean ''true'' value. | ||
− | Internally, <tt>#true</tt> is represented by the integer value -1. | + | Internally, <tt>#true</tt> is represented by the integer value -1.}} |
==== Example ==== | ==== Example ==== | ||
<pre>if #false | <pre>if #false | ||
Line 15: | Line 9: | ||
if #true | if #true | ||
display ok This will always be displayed</pre> | display ok This will always be displayed</pre> | ||
− | + | {{footer}} | |
− | + | ||
− | + | ||
− | + |
Revision as of 11:46, 26 August 2005
⇒ | A constant that represents boolean true.
The constant #true is used to assign or compare a variable or an expression with the boolean true value. Internally, #true is represented by the integer value -1. |
Example
if #false display ok This will never be displayed if #true display ok This will always be displayed
See also
Main Page | Documentation |