Difference between revisions of "Command:If"

From Lavish Software Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Syntax ==
+
#REDIRECT [[Control:If..Else]]
if (condition) statement1<BR/>
 
[else statement2]
 
 
 
== Description ==
 
Conditionally executes a group of statements, depending on the value of an expression.
 
 
 
When using characters with special values, such as '<', enclose the statement in quotes.
 
  if "2 > 1"
 
 
 
== Examples ==
 
  if x == 5
 
  {
 
    if y == 6
 
      varset z 17
 
  }
 
  else
 
    varset z 20
 
 
 
== See Also ==
 
*[[LavishScript:Commands|Commands]]
 
{{Command-Stub}}
 

Latest revision as of 02:36, 13 September 2005

Redirect to: