Concept Flow - Switch expression behavior
Start switch expression
Evaluate expression once
Compare expression to case values
Match found?
No→Execute default case if present
Execute matched case block
Exit switch
The switch expression is evaluated once, then compared to each case value in order. When a match is found, its block runs and the switch exits.