Command:Default
From Lavish Software Wiki
Contents |
[edit]
Syntax
| Default | |
| Usage | Beginner |
| Level of Understanding | Intermediate |
| Computer Savvy | Beginner |
| Logic | Intermediate |
Default
[edit]
Description
Used within a Switch, this marks the "default" case. If no explicit cases match, this will be executed. If no default is given and no explicit cases match, the execution would simply continue after the EndSwitch.
[edit]
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
[edit]
