If no matching label is found, the program looks for the optional default statement, and if found, executes the associated statement. If no default statement is found, the program continues execution at the statement following the end of switch . The optional break statement associated with each case label ensures that the program breaks out of switch once the matched statement is executed and continues execution at the statement following switch. If break is omitted, the program continues execution at the next statement in the switch statement. When break is encountered, the program breaks out of switch and executes the statement following switch .
Parameters varname Variable name.
It can be any legal identifier. The scope of a variable is the current function or, for variables declared outside a function, the current application. If a global variable of the same name exists. If recursive or multiple functions use variables with the same name. The loop then repeats, as long as the specified condition is true.