Values not changing with state change

Hi  - I have set up 18 buttons, each with a selected state, each defaulting to normal. Each button has an associated variable, defaulting to false. I have two triggers for each button: 1) when the button state is set to selected, set the variable to true, and 2)  when the button state is set to normal, set the variable to false. 

The variables do change to true when a button is selected, but then when I deselect a button (and the button state changes to normal) the variable remains as true. 

Any reason for this and way to remedy? 

Much thanks,

Amy

4 Replies