Skip to main content
Known Participant
April 23, 2018
Question

How to set Conditional Expression (number of attempts)

  • April 23, 2018
  • 1 reply
  • 148 views

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

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    April 23, 2018

    You are confusing two levels of attempts:

    • Attempts on Question level (which you set to 2 for each question)
    • Attempts on Quiz level, which is set in Quiz Preferences.

    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).

    Question Question Slides in Captivate - Captivate blog