Concept Flow - Case with ranges and patterns
Start with a value
Enter case statement
Check each pattern or range
Match found?
Yes→Execute matching branch
Exit case
No match
→Check next pattern
No matches
→Execute else branch if present
End
The case statement checks the value against each pattern or range in order, executes the first matching branch, or else runs the else branch if no match.