Variable doing the opposite of what it says
Aug 23, 2019
I have the following: Slide with button to play and stop music when user clicks button. Button has two states, Normal = "Turn Music Off" and Selected = "Turn Music On" with the following variables:
- 1st variable: "Stop Media when user clicks button 1 if button is in state Normal"
- 2nd variable: "Play Media when user clicks Button 1 if button is in state Selected"
I want the music to play by default. If the user clicks "Turn Music Off" the music should stop. If user clicks "Turn music on" the music should start. Instead what happens is the music does not play by default, and when user clicks initial state button "Turn Music off" the music plays and when user clicks "Turn Music On" the music stops.
You would think that reversing the logic would work, but it doesn't - it just becomes more complicated.
Can anyone tell me what I'm doing wrong?