Label text as a condition for button (panel sprite)

It would really be helpful if the button (panel sprite) object’s label text was a condition as well as an expression. I looked at the object’s events and it seems like it just needs to be switched from expression to expression and condition I tested it and it seems to work fine as both.

image

If the button text is a condition, then you can use it for things like a quiz game to see if the correct answer is clicked or anything else.

This uses straight forward conditions. My other option would be to use an object variable.

I shuffle the possible answers. So, I was also able to use the label text instead of a variable.

1 Like