In computer programming, a switch, case, select or inspect statement is a type of selection control mechanism

- Wiki
1 articles, 0 books.

Sometimes the quantifiable differences between a switch statement and a set of if-else statements can be murky. And when you choose to use a switch statement in your code, you may wonder if it provides any practical advantage beyond a personal preference issue, such as readability.