Introduction
Relational patterns help you check if a value is less than, greater than, or equal to another value in a simple way.
When you want to check if a number is bigger or smaller than another number.
When you want to run different code depending on a value's size.
When you want to make your code easier to read by using clear comparisons.
When you want to use pattern matching with conditions in a switch or if statement.