Concept Flow - Switch-case statements
Evaluate expression
Compare with case 1
Yes / No
Run case 1
Yes / No
Run case 2
Run default if no match
End
The switch expression is evaluated once, then compared to each case in order. When a match is found, that case runs. If no match, the default runs.