How to make nested if else situation?

I am trying to create nested if else statements in my game, but I am not sure how to do that. Basically I want my Fly object to land on certain foods first if they exist, if not they will just go down in order. Something similar to the attached picture. It isn’t in any kind of language. I am just trying to convey what I am trying to do.
Capture

Hi,

GD game logic is based on events, events has two parts: conditions and actions. Everything in the condition side equals an IF statement and the actions are the result that takes place if the conditions are true. Events can be nested (events with subevents with subevents with subevents).

But all of that is very well explained in the wiki and the tutorials. So, take a look at that.

2 Likes

Just use sub events.