Seems like asking for more than one statement to be true in a while loop causes it to loop endlessly.
works, if somewhere in the loop that boolean is made true. However:
will just loop forever, even if either of the booleans are made true in the loop.
Anyone know of a way to check for more than one statement in a while conditional?
asked Jan 01 '12 at 01:24 PM
The second while will only stop when both variables are true. if you want to stop the loop when any of them is true, you should use && instead:
In other words, this code will loop while bool1 and bool2 are both false.