A while back in college, I read somewhere that when there are a similar number of conditions in an if-else block and a switch statement, the switch statement is faster.
And although I had to think quite a bit about the order of the conditions, it looked a bit cleaner than the former.
For me, I would use if-else blocks instead of switch statements until it's absolutely necessary. This was btw my first use of switch statements in around 2 years since last I used them in college.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.