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

krugen

Member
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

Member
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