To be fair, there are a lot of "XYZ" problems on Stack Overflow where someone's missing the point with the problem they're trying to solve.
"I need my script to delete my file, but I can't figure out the pathing so I delete random files until the correct one is gone. However, it's slow -- how do I speed my script up when deleting random files?"
The counter to this is when you’re doing something a really dumb way because of requirements and restrictions and someone’s just like “that’s so dumb, ignore your requirements and do this other thing instead”
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.