I was told by a teacher that a series of nested if statements is actually faster than a switch statement. According to a book he had read, a switch statement is only faster if there are 100 or more conditions. However, he was unsure of the reasoning behind it.

Can anyone verify/explain why this is true or not true?