Difference between revisions of "Command:Else"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
  {
 
  {
 
   if y == 6
 
   if y == 6
     varset z 17
+
     z:Set[17]
 
  }
 
  }
 
  else
 
  else
   varset z 20
+
   z:Set[20]
  
 
== See Also ==
 
== See Also ==

Revision as of 21:43, 7 September 2005

Syntax

Command Difficulty Rating
Else
Usage Beginner
Level of Understanding Intermediate
Computer Savvy Beginner
Logic Intermediate

Else

Description

Else can be used in conjunction with If to do something when the conditions were not met.

Examples

if x == 5
{
  if y == 6
    z:Set[17]
}
else
  z:Set[20]

See Also