Difference between revisions of "True"

From Wiki
Jump to: navigation, search
(change read only to template)
 
(10 intermediate revisions by 2 users not shown)
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 ====
+
 
[[false]]
+
== Related Functions ==
----
+
{| style="background:cornsilk; color:black; "
[[Documentation]]
+
| [[False]]  
 +
|}
 +
 
 +
=See Also=
 +
{{Constant}}

Latest revision as of 09:18, 13 September 2007

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

Related Functions

False

See Also

Constant

  • Constant system variables represent characters that are used as tokens within the EasyUO language itself, or characters that would not normally be parsed properly by EasyUO.
#dot A constant that represents the dot character
#false A constant that represents boolean false
#smc A constant that represents the semicolon character
#spc A constant that represents the space character
#true A constant that represents boolean true