Forum Discussion
Unable to to make certain variables work
Hello,
I have a problem to setup a certain setting with variables.
In my project i have a "crossing" where you can select 3 different topics to continue. After a topic is finished you get back to the crossing. After visiting all 3 topics, you are supposed to not jump back, but instead move forward to topic 4.
So at the crossing I have tied a trigger to the "Topic 1", Topic 2" and "Topic 3" buttons which says "Add 1 to VariableA"
Then I have tied a trigger to the "continue" button for every last slide of each topic which says " Move to crossing slide by clicking continue IF VariableA is smaller/equal 2" and a second trigger "Move to topic 4 slide by clicking continue IF VariableA is bigger/equal 3".
But every time the continue button in the last slide of each topic brings me back to the crossing, it never continues to topic 4.
What am I missing?
Thx in advance for your help!
- JudyNolletSuper Hero
Hi, Marko,
Based on your description, it sounds like what you did should work. Without seeing the file, it's hard to tell why it doesn't work.
By the way, be careful about using a number variable in situations where a given trigger might execute more than once. For example, a learner could view Topic 1, return to the "crossing" slide, and then click Topic 1 again (either because they suddenly want to review something or just by accident). At that point, the number variable would = 2 even though only 1 topic has been viewed.
Instead, you could use a T/F variable for each topic, with the default value of False. Add a trigger to the last slide of each topic that changes the variable to True. If you do this, then your Continue buttons would have triggers like this:
- Jump to [crossing slide] with the conditions that any of the three topic variables are False. (That would be 3 conditions connected by the OR operator.)
- Jump to [topic 4] with the conditions that all three topic variables are True. (That would be 3 conditions connected by the AND operator.)
- JulianSchmidt-3Community Member
Thank you for your answer.
I deleted all triggers and set them up the way you suggested.
And works like a charm! Thank your very much.
Also it´s much less hassle to have all relevant triggers on one slide, rather then spread over the crossing slide and the last slide of each topic - very good tip!