• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Exit while loop

S

Simulacron

Guest
I have a while loop that gets executed as long active = true. In one part of my code I want to exit the the while loop instantly without executing everything else that comes after this section in the while loop. Can I just set active = false, or will still still execute the last part of the loop?
 
S

Simulacron

Guest
Thanks, still experimenting with loops, so I'm often unsure when to use what :p
 
Top