How if condition use within switch condition?

Answer:
The switch condition is only evaluated once, so it does not make sense, and it could be misleading, to use an if condition in the switch condition. However, that does not mean it can not be used. You could use the if condition to group switch conditions, but you can also do that with multiple case statements at each branch point.
First answer by Alex146. Last edit by Alex146. Contributor trust: 419 [recommend contributor recommended]. Question popularity: 2 [recommend question].