Help with conditional advanced action, with more than one decision group
Hi All
I am having trouble with a conditional action, and no matter what I try - I cannot get it to work.
Background: I create custom knowledge checks (multiple choice), so I can have more control over how they look. I do this using variables and advanced actions. This works fine with single answers, and does the following:
- On entering the slide, a variable for the question attempt (they only get 2 attempts) is set to 0.
- When a learner selects an answer, it assigns a variable for that answer with 1.
- When clicking submit, the advanced action checks the attempt number (variable), and the answer selected (variable). I have 4 decision groups that go like this:
- First attempt = correct. Show correct info and next button
- First attempt = incorrect. Show 'Try Again' info and close button. The close button changes the attempt variable from 0 to 1.
- Second attempt = correct. Show correct info and next button.
- Second attempt = incorrect. Show incorrect info and next button.
What I am trying to do now, is use the same logic for a question that requires multiple answers to be selected. I have set up the action to check if its the first attempt, and if all answers have been selected. In the conditional part, I am still chekcing for the attempt number, AND all the answers. For example:
- If ans 1 = 0
- And ans 2 = 1
- And ans 3 = 1
- And ans 4 = 0
If attempt 1, the action is to display the correct info. In the ELSE section, it is set to display TRY AGAIN. Then if attempt 2, it is set to show correct, ELSE incorrect.
This all makes sense to me loigically, and yet when testing, if I select the wrong answers the first time - it jumps straight to incorrect and does not show TRY AGAIN.
I can paste screenshots if need be, just hoping this might be an easy answer for someone in the know!
