Concept Flow - Basic match usage
Start with a value
match value with patterns
Pattern 1?
Yes→Execute code 1
Pattern 2?
Yes→Execute code 2
Pattern 3?
Yes→Execute code 3
Default pattern
→Execute default code
End match
The match expression compares a value against patterns one by one and runs the code for the first matching pattern.