Forum Discussion

MorganFarmer's avatar
MorganFarmer
Community Member
3 years ago

Conditional Button with a Slider Variable

Hey everyone, long time reader, first time poster...

The Issue:

I'm hoping someone can help me get a button to jump to different slides based on a variable in a slider. I have a slider that changes based on a user's responses, when the slider dips to a variable of -3, I would like the continue button to take them to a sort of game over slide to review strategies and try again. If the slider isn't at -3, then I want the button to take them to a slide ending the experience with a congratulations.

What I've Tried:

I have tried attaching conditions to the slider and to the button but neither work. I added conditions for if the variable isn't -3. And I've also tried rearranging the order of the triggers. 

Any help would be super appreciated, thank you in advance :)

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    You might want to check if the variable actually changes to -3. Also, based on your description, I think your JumpTo triggers should be reversed so that you jump to the GameOver slide when the user clicks if Slider 1=-3

  • Would you mind adding the project file? I have a couple of ideas and can try to help!