Logic Issue

I have 3 buttons that I want to control the power of my amplifiers. I have 2 amplifiers and each turn on lean runs through a relay. "Main Amp" button triggers output 0 and "Sub Amp" button triggers output 1. Now I want a "All Amps" button to trigger both outputs.

Now in theory when I click the button the variable should change to 1 and trigger both outputs 0 and 1, then change the variable to 2. Then when I click the button again it should change the variable to 3 and trigger the outputs 0 and 1 again and reset the variable back to 0.

Now in reality when I click the button it changes the variable to 1 but nothing happens to the outputs. When i click the button again it changes to 2 for a split second then goes back to 1. I can hit the button 100 times and it does the same. If I take out the logic statement the variable goes up by 1 every time I hit the button as it should.

I made the logic in the configurator. The variable "amps" is not used in any other part of my logic other than a text label just so I can monitor it since it wasn't working. Am I doing something wrong in the logic? I remember in pre-mdx software you could link buttons together. Is this still an option also?

I went through my config file and deleted some stuff I don't need that is unrelated to the "amps" logic and I didn't test it before i did that today but now the numbers go up by 1 each time you hit the button w/o it jumping back, but it still does not trigger the logic for that variable.

So weird... At one point the variable was changing as it should, but with much delay, and the outputs weren't triggering. Then it just stopped working all together again... just goes up by one each time you press the button. Tried changing the button priority to "low" and the logic variables to "high" like you suggested above and the output statements in the logic to "high" and still nothing. Also tried it on a second computer with same results.