Concept Flow - When with ranges and types
Start
Evaluate expression
Check when branches in order
Is value in range?
Yes→Execute branch
Is value of type?
Yes→Execute branch
Else branch
→Execute branch
The 'when' expression evaluates a value, then checks each branch in order to find a matching range or type, executes that branch, and stops.