Concept Flow - Switch vs if comparison
Start
Evaluate expression
Switch: Match case?
Execute case block
Break or continue
Exit switch
End
Both switch and if check conditions to decide which code to run. Switch matches exact cases; if checks conditions one by one.