Forum Discussion
Tying variables to previous button
Hi, I'm fairly new to Storyline and working in Storyline 3.
I'm trying to use a true/false variable to give an option to skip a section of content. I've created the t/f variable and created a button the learners can click to skip this section (about 10 slides) if it isn't relevant to them.
That part works fine. On slide 4.3, they click the skip button to go to slide 4.13. If they click the next button, they go through slides 4.4-4.12. Clicking the skip button is set to turn the t/f variable to true, otherwise it should remain false.
My issue is the slide after the skipped content (slide 4.13). I tried to set the previous button to the variable. If the variable is true (they clicked the skip button), I want the previous button to take them to slide 4.3. If the variable is false (they did not click the skip button), I want the previous button to take them to slide 4.12.
No matter what I do with the variables, the previous button will only go to 4.12. For some reason either the true state isn't working or it isn't carrying over between slides. I've tried deleting the variables and triggers and starting again but no difference. Have I missed something essential with the variables?
- WaltHamiltonSuper Hero
On slide 4.13, place a text box. Inside it, choose Insert -> Reference -> and select the variable. When you get to slide 4.13, the value of the reference will be shown in the text box. If it is not being changed to True, the odds are that the jump object on slide 4.3 has two triggers, one to jump to 4.13, and the other to change the variable. If the jump is above the variable change, the jump happens first, and the other trigger isn't executed. Move the variable change trigger above the jump trigger.
If that's not the problem, here's a sample that does work.
- ErinWalker-0a85Community Member
THANK YOU! It was that the trigger to jump to 4.13 was above the trigger to change the variable. Such a simple fix!
- WaltHamiltonSuper Hero
You're welcome. PIAWYC (Pass it along when you can).