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

Is if...else if...else permitted in GMS2?

K

krugen

Guest
I tried the combination if...else if...else, it does not work. Based on the condition I have set, it is suppose to execute the last else statement. But it just skips it.

Just wanna know if anyone tried this and worked. If so, I must have done something wrong.
 

FrostyCat

Redemption Seeker
if-else-if ladders are so fundamental to structured programming that if the compiler failed to handle it properly, it would have been reported right away as an urgent matter and hotfixed immediately. Given that there have been no such actions, chances are it's you doing something improper with your conditions.
 
Top