Forum Discussion
Values in variables not changing correctly
Hello!
I'm new to Storyline 360 and I want to make a 10-question quiz that displays which questions were wrong in the result slide. For that, I'm making a variable in each question that's supposed to change its value to 1 when "Question.Correct" is false, so that i can track each incorrect question and display them in the final slide (If the variable has a value of 1, a hidden text box displaying the wrong answer will change its state to "Normal", if not, it'll stay hidden).
My problem is the values for each question change to 1 independently if the question is answered correctly or not. I know I'm doing something wrong, but i can't figure out what, and I would be very thankful if someone could help me.
Thank you!
I'll attach the question triggers:
And the result slide triggers:
Using the Question.Correct variable in your scenario can be tricky. Jumping to the next slide without the presence of feedback layers and a trigger to submit the interaction can result in an incorrect change to the Question.Correct variable. Please find the attached .story file, which provides a solution to your problem. Just adjust the triggers on the result slide to show or hide text based on the values of the question's incorrect variables.
- PhilMayorSuper Hero
Question.Correct is not a great variable to use as it changes each time you switch slides and is therefore difficult to debug.
I would have changed the variable on the feedback layers, if you didn't want feedback I would have had invisible feedback layers that change the variable and then jump.
- SINERGYAlexCommunity Member
Thank you so much for your help. I tried it and it was indeed easier to track with the variables on the feedback layers.
- NedimCommunity Member
Using the Question.Correct variable in your scenario can be tricky. Jumping to the next slide without the presence of feedback layers and a trigger to submit the interaction can result in an incorrect change to the Question.Correct variable. Please find the attached .story file, which provides a solution to your problem. Just adjust the triggers on the result slide to show or hide text based on the values of the question's incorrect variables.
- SINERGYAlexCommunity Member
Thank you for your help. It was indeed the solution to my problem. Thank you for taking the time to provide me with the file as well, I learned much from it.
Again, thank you so much.