case condition1 do
case condition2 do
The switch case statement is designed to execute equation(s) based on the condition of a variable. Only the equations of the valid branch are executed. If non of the branches is valid, the equations of the default branch are executed.
|1.||The switch variable should not be changed inside one of the branches.|