Switch Case (Section) — SkCheese
Addon: SkCheese · Category: Section · Since: 1.0
Syntax
switch %~object%Description
The switch case executes one statement from multiple ones. Thus, it is like an if-else-if ladder statement. The switch statement is used to test the equality of a variable against several values specified in the tests cases.
Examples
switch {_var}:
case 1:
broadcast "1"
case 2:
broadcast "2"
default:
broadcast "neither"