Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to set Conditional Expression (number of attempts)

New Here ,
Apr 23, 2018 Apr 23, 2018

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

135
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2018 Apr 23, 2018
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources