Sometimes you will see things like this:
This may seem like one large statement, but in fact there are some nested if-else blocks as Bear and Paul already said:
There is only one statement that can perform code for more than one possibility, and that is the switch statement. That only works on a single numeric or
string value though. For instance, the following two are logically equivalent:
Note that you need the break statements there, otherwise the switch statement will
fall through to the next case.