Difference between revisions of "Command:Else"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Syntax == | == Syntax == | ||
{{CMD-DR|Else|Beginner|Intermediate|Beginner|Intermediate}} | {{CMD-DR|Else|Beginner|Intermediate|Beginner|Intermediate}} | ||
+ | Else | ||
== Description == | == Description == | ||
+ | Else can be used in conjunction with [[Command:If|If]] to do something when the conditions were '''not''' met. | ||
== Examples == | == Examples == | ||
+ | if x == 5 | ||
+ | { | ||
+ | if y == 6 | ||
+ | varset z 17 | ||
+ | } | ||
+ | else | ||
+ | varset z 20 | ||
== See Also == | == See Also == | ||
*[[LavishScript:Commands|Commands]] | *[[LavishScript:Commands|Commands]] | ||
{{Command-Stub}} | {{Command-Stub}} |
Revision as of 06:01, 2 April 2005
Contents
Syntax
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 varset z 17 } else varset z 20