A case statement:
- Performs a comparison to an expression to evaluate one of several parallel branches.
- Evaluates the branches in the order in which they are written.
- Executes the first branch that evaluates to
TRUE
.
If none of the branches match, a case
statement executes the default
branch.