Forum Discussion
Branching back and forth using Variables
Hi, John, and welcome to E-Learning Heroes! ✨
Thank you for sharing those details! If you can share your .story file, I'm happy to take a look and help you troubleshoot.
In the meantime, I'm attaching an example similar to what you described but using characters instead of roles.
On the first slide, the user picks the character, which sets the value of a text variable (but you can also use a number variable here). The second slide has a button that will take the user to three different slides, depending on their chosen character.

You can use the same triggers to branch your scenario throughout the project, using the variable's value.
Let me know if this works!
Thanks Maria. I adjusted the course to try it this way, using a number variable. It worked for 2/3 tracks but for one - Sales - it gets stuck on "Everyone 1" slide. Would love to know what I'm doing wrong and would love to know how to do this with a True/False variable. I've attached the storyline file - it's just a mock up as we're still doing visual design & storyboarding right now.
Also - for my own edification and learning - it appears that you can have multiple triggers on the same action/object on a slide - in this case 3 (or more?) triggers that control what happens when the user/learner clicks the next/forward button. The variable controlling what happens based on logic. In my first mock up I setup 3 variables - Sales, Care, Tech, and set each one to True if they clicked on a certain path (using a button widget just as a test) on the intro slide. Does that logic of using variables to control action work if you setup more than one variable or is it the case that you need to setup one variable and use different values to control something like branching in this case?
Thanks
John
Related Content
- 2 months ago
- 12 months ago
- 12 months ago