Forum Discussion
Help using variables for scenario
- 3 months ago
Setting the 'Scenario_1' variable to 1 when the user clicks 'Incorrect Answer' means it will always remain 1, causing the second condition to never be met. You should also change the order of the triggers. In the current setup, the trigger to jump to slide 1.5 Scenario 1C executes first, preventing the second trigger from running and leaving the 'Scenario_1' variable unchanged at 0. This causes the interaction to loop over the first incorrect slide repeatedly.
Try this instead:
Changing the order of the triggers will ensure that the 'Scenario_1' variable is incremented by 1 before jumping to slide 1.5 Scenario 1C. This way, the next time the user clicks the 'Incorrect Answer' button, the variable will be increased again, triggering the 'Else' part of the trigger that jumps to slide 1.7 Scenario 1D.
Setting the 'Scenario_1' variable to 1 when the user clicks 'Incorrect Answer' means it will always remain 1, causing the second condition to never be met. You should also change the order of the triggers. In the current setup, the trigger to jump to slide 1.5 Scenario 1C executes first, preventing the second trigger from running and leaving the 'Scenario_1' variable unchanged at 0. This causes the interaction to loop over the first incorrect slide repeatedly.
Try this instead:
Changing the order of the triggers will ensure that the 'Scenario_1' variable is incremented by 1 before jumping to slide 1.5 Scenario 1C. This way, the next time the user clicks the 'Incorrect Answer' button, the variable will be increased again, triggering the 'Else' part of the trigger that jumps to slide 1.7 Scenario 1D.