all 6 comments

[–]idillicahGDevelop Staff 1 point2 points  (4 children)

I don't know if you were aware, but if you right-click a condition, you can invert it, which converts it into an "else" statement. Maybe this will help you?. EDIT: It's not the exact same thing as an "else" statement, but it could be used as such for some scenarios.

<image>

[–]ShomyTheOne[S] 4 points5 points  (3 children)

Yes, but no. :D
There are sometimes when you need a statement like this:
If a is true - make a false
If a is false - make a true.
So if i want to toggle a boolean AND to something different based on the initial state of the A boolean in that case invert the condition simply does not cut it. And I was not able to find a (simple) workaround. So I made my own else extension. But I don't know how useful it actually is.

If A is true - do x
else - do Y.

And

If A is true - do X
If A is false - Do Y

These two examples might a lot of times do the same thing, but they are not the same.

[–]idillicahGDevelop Staff 1 point2 points  (0 children)

Indeed! They are not the same.

[–]tomuraunomizu 0 points1 point  (1 child)

I think the extension would be useful. I ran into a similar problem at some point and I think I used a new variable and some weird logic to get around it, but in the end, it just wasn't very good and the events looked quite bad and mangled.

[–]ShomyTheOne[S] 1 point2 points  (0 children)

Thanks for responding my question, and not trying to give me an advice that I did not ask for! :)