Before I answer your question, let me tell you a little bit about formatting and why that’s really what you should be more concerned about and how nobody will want to program beside you if you make an else if statement that could have been made into a switch and…
It’s a shorter way to write if else if else if else if else, which keeps indenting and harder to read if there are lots of cases, also because each if statement checks the same variable for different values.
Before I answer your question, let me tell you a little bit about formatting and why that’s really what you should be more concerned about and how nobody will want to program beside you if you make an else if statement that could have been made into a switch and…
Me who still doesn’t understand switch
It’s a shorter way to write if else if else if else if else, which keeps indenting and harder to read if there are lots of cases, also because each if statement checks the same variable for different values.
Turns on and off?