Concept Flow - match operator
Start: Have a value
Use match operator to compare
Check each pattern in order
Pattern 1 matches?
Yes→Return match result
Pattern 2 matches?
Yes→Return match result
Pattern 3 matches?
Yes→Return match result
No match found
→Return $false
End
The match operator (-match) compares a value against a regex pattern and returns $true if it matches, $false otherwise. The diagram shows the logic of sequential checks using the operator.