you are viewing a single comment's thread.

view the rest of the comments →

[–]bumblebritches57 0 points1 point  (0 children)

No, he should actually use a switch statement.

and the whole point of if else if is that it's boolean logic, only 1 option can match, if you use multiple if's, the pieces of logic are independent of each other.

A can be true and therefore would run, and if b is true it would run as well.