Summary
The keyword for identifying a statement block in a switch ruleflow statement. This keyword inside a switch statement.
Syntax
switch (expression)
{
case value1:
{ruleflowStatement}
...
case valuen:
{ruleflowStatement}
default:
{ruleflowStatement}
}
Description
The switch statement is a conditional ruleflow statement. The integer expression is evaluated. If there is a case block whose value is equal to the evaluated expression, then the corresponding statement block is executed. If no block with the requested value is found, then the default block is executed.