• 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!

GameMaker while else?

Neptune

Member
Is this a thing?
Code:
while (conditions)
{

}
else
{

}
I think other languages sometimes have while-variations, does GML have any?
 

Binsk

Member
Everything after a while loop is effectively an "else".

If you want to only do code if the while never ran the put a variable check in the loop or place it all in an if statement with the same check.
 
Top