Using Switch in a If if condition

What’s this all about ?