Welcome to Loopy Logic, where the rules of programming are bent, twisted, and generally made-up.
Here's a primer on conditioning, the art of making your code do what you want, when you want, and sometimes when it's just plain wrong.
Learn about Conditional Loopy Loops Explore Loopy ConditionsAnd don't forget: Loopy Logic has a 100% satisfaction guarantee. If our advice doesn't work, it's not us. It's probably your code that's just that broken.