How can I change another button's color using logic?

How can I change another button’s color using logic?

Put a formula in the button Style Background property:

Example check button status variable and make the color blue or red:

1 Like

Is there a way to add more than just two parameters to a formula to change button colors? I’m working on a quiz app and I want to change a button color from its original color to another one when clicked on and then go back to the original color if the user taps on the button again ?
P.S. I can successfully work with buttons that use an IF formula. The only problem is, the button won’t go back to its original color if clicked on again.
Help please!!!