Problems with states and variables

I've created a menu with three buttons. the states of the buttons should change when a corresponding variable changes.

What is suppose to happen, is you come to a menu. You click on the first button. You go through that section and when you come back to the menu the button has changed to a visited state. There is a variable on one of the slides in the section that changes and the button changes based on that variable. But for some reason, as soon as you click on the button the state changes, before you even get to the slide with the variable.

Any suggestions

3 Replies