Variable keeps adding up
Jan 15, 2015
By
Douwe Suesan
Hi all,
I've made a simple excercise to figure out the following: is it possible to attach quiz questions to variables, without the variables keeping adding up if you click on the answers more than one time? For instance when you first choose answer A, but then quickly decide to choose answer B, before hitting submit, both the variables attached to answer A and answer B are changed. I'm looking for a solution, in which only the variable attached to answer B is changed.
I hope this makes sense!
Thanks,
Douwe
5 Replies
The easier way is to set it on the submit button so the addition only happens when the answer is selected
This should show what I mean
Hi Phil,
Thanks for your quick response! When I look at your solution, unfortunately every variable (Red, Green and Blue) add 1+ when I hit the submit button. So I've added a condition and now it works. Thanks for your help!
Oops sorry shouldn't have rushed. Glad you got it sorted
Hello Douwe,
Welcome to the community, glad you got this all sorted out. Let us know if you need anything further!
This discussion is closed. You can start a new discussion or contact Articulate Support.