Introduction
A switch with where clauses lets you check extra conditions for each case. It helps you make decisions based on more detailed rules.
When you want to check a value and also test extra conditions before choosing a case.
When you have multiple cases that depend on both the value and some other property.
When you want to keep your code clean by combining value checks and conditions in one place.