Difference between revisions of "True"

From Wiki
Jump to: navigation, search
(fixed see also link)
Line 1: Line 1:
__NOTOC__
+
{{header|Constant|ro|A constant that represents boolean true.
== #true ==
+
'''Constant System Variables'''
+
=== Description ===
+
{{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>
==== See Also ====
+
{{footer}}
[[Var_false|&#0035;false]]
+
----
+
[[Documentation]]
+

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