Concept Flow - Case/when statement
Start
Evaluate expression
Compare with when conditions
Match found?
No→Else block or nil
Execute matched block
End
The case expression evaluates once, then compares to each when condition until a match is found, executing that block or else block if no match.