csanyk
Member
Question on break. If you're in a nested flow structure, how does break work?
I have the following situation:
Does break exit the if? The while? The with? the outer if? The Event?
For what it's worth, i'd like to exit the While loop if the innermost if condition is true.
Is it consistent between GMS1 and GMS2? Between different target platforms?
I have the following situation:
Code:
Event:
if condition
{
with(instance)
{
while loop
{
if condition
{break;}
}
}
}
}
For what it's worth, i'd like to exit the While loop if the innermost if condition is true.
Is it consistent between GMS1 and GMS2? Between different target platforms?