Add possibility to switch on buttons

Sometimes I like to do different actions according to what button shows up on the screen.

I find making huge if statements like ‘if this button shows, do this’ really ugly and hard to maintain.

Switch cases solve that however you can’t switch on a button condition currently. It would be awesome if you could I think.

Thank you.