GMS 2 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