Difference between revisions of "Command:EndSwitch"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
== Syntax ==
+
#REDIRECT [[Control:Switch]]
{{CMD-DR|EndSwitch|Beginner|Intermediate|Beginner|Intermediate}}
 
EndSwitch
 
 
 
== Description ==
 
Used with [[Command:Switch|Switch]], this marks the end of the switch.
 
 
 
== Examples ==
 
 
 
Switch ${Fruit.Color}
 
{
 
  case Red
 
    echo Is the fruit a strawberry?
 
    break
 
  case Blue
 
    echo Is the fruit a blueberry?
 
    break
 
  case Yellow
 
    echo Is the fruit a banana?
 
    break
 
  Default
 
    echo I don't know what kind of fruit might be ${Fruit.Color}!
 
    break
 
}
 
EndSwitch
 
 
 
== See Also ==
 
*[[Command:Switch|Switch]]
 
*[[LavishScript:Control Structures|Control Structures]]
 
*[[LavishScript:Commands|Commands]]
 
{{Command-Stub}}
 
[[Category:LavishScript]]
 
[[Category:LavishScript Commands]]
 

Latest revision as of 02:38, 13 September 2005

Redirect to: