Maddening variables conundrum...can anyone offer advice?

Your code is trying to do 2 things with one variable value - check for answered and check for correctness. You only display the Correct / Incorrect msg on the third button. You need to have that on all buttons. Essentially you need to check to be sure all three have been answered BEFORE checking for correctness.


What you really need to do is this:


1. On ALL buttons add something to the variable: a0 if wrong, a1 if correct, b0 if second one is wrong, b1 if right, c0 on the third if wrong, c1 if right.


2. Add an action on ALL buttons that run an action group that checks for correctness. I covered this kind of structure in my last newsletter. This button would have three conditions that ALL had to be met: the variable contained a, contained b, and contained c. Then and only then run the next action group called Answered.


3. The Answered action group contains only one action. If the variable contains 0 then at least one of the incorrect buttons was clicked. If so, display incorrect feedback, else display correct feedback. You can add other actions to this group if needed.


 

Discussions have been disabled for this post