Difference between revisions of "Else"

From Wiki
Jump to: navigation, search
(Example)
 
Line 10: Line 10:
 
halt
 
halt
 
</pre>
 
</pre>
Will always display %a if [[false]]
+
Will always display %a is [[false]]
  
 
== Related Commands ==
 
== Related Commands ==

Latest revision as of 10:49, 3 August 2007

Synopsis

Else

Description

Used in conjunction with if, processed only when the if statement evaluates as false. Must be placed immediately after the true command from the if statement.

Example

set %a #false
if %a 
   display ok % , a is True
else 
   display ok % , a is False
halt

Will always display %a is false

Related Commands

If

See also

Main Page Documentation