So how do I simulate "If Else" in GDevelop 5


I’ve read discussions about “If Else”. But I still don’t know how to simulate “If Else” in GDevelop 5. Do I have to use a flag to set 0 or 1? Please show me the best solution.


Create a scene variable.exemple. elseif
If mouse in on object and click release: elfeif=f
If a=1 action: show ‘a’ . elseif=v
If a=2 and elseif=f show ‘b’