If and Else If in GDevelop

Hi! I was wondering how to make the code so that if one condition is already met it will not execute the next condition

as seen in this screen shot it should only execute the first condition if the bucket is true but it also execute the second condition. Can someone enlighten me?

You need a variable that will be true if the first event has been executed, and a condition in the second event. Often required for toggle buttons.
In your case you can have a condition with “status is visible”, etc. to know the first event was true and the second is not needed.

1 Like

I was thinking of using the same method. I guess there is now way around it. Thank you very much for the insight! :smiley: