Copy link to clipboard
Copied
Hi Folks,
My question is related to the conditional expression.
Scenario:
I want to give the user 2 chances for every quiz. Let's say in a section , I have 3 questions. For each question, the user will get 2 chances. At the end of the quiz, if the user fails to answer all of the questions correctly then they should learn the section again.
Steps done by me:
1. I set the number of attempts to 2 for each question.
2. Navigated to Actions.
3. Select the Execute Advance Actions from the drop-down menu.
4. Navigated to Project-> Advanced Actions to write the script.
5. In the script I wrote
cpQuizInfoMaxAttempt <= 2 and the answer is correct -> Action - then got to next slide
maxattempt >2 -> Action - then learn again
I found something is fishy in the script.
Can somebody help me on this please?
Regards,
Madhusmita
Copy link to clipboard
Copied
You are confusing two levels of attempts:
There is no system variable cpQuizInfoMaxAttempts, but cpQuizInfoMaxAttemptsOnCurrentQuestion. I also don't understand why you create a conition on question level, while your explanation seems to indicate it should happen on Quiz level.
This is a very old blog post, need more time to rewrite some posts, but it has still a lot of valid information (only the Review work flow has changed with the new Review buttons).