Note 4.4.1.
If you have a chain of
if
statements, the program will go through executing each conditional, regardless if the conditions are met. However, as soon as you add an else
or even an else if
statement, the program will stop executing the chained conditionals as soon as a condition is met.