Would you like to give a student extra help questions when they have answered a question incorrectly? Or would you like to skip certain subquestions if the student answers the first question correctly?

You can use conditional logic within an exercise to achieve this. This provide great didactic possibilities to personalise each exercise based on the answers of that specific student.
In this article we will explain how to create an exercise with conditional logic.

Exercises with conditional logic can't be used within tests yet. Therefore you won't see the "link to test" button if you have selected a conditional exercise.

Setting up your first conditional exercise

Setting up a conditional exercise takes 3 steps.

  1. Enable conditional logic

  2. Set the actions for student incorrectly and correctly answering a (sub)question

  3. Save the exercise

1. Enable conditional logic

You can enable (and disable) the logic in an exercise by clicking "more" and then selecting "Toggle conditional logic".

When enabling the conditional logic, the actions of the first question will be set to "Complete exercise". If you go to preview now, you won't see the subquestions anymore, since there are not triggered by any action.
Next step is to specify an action in the first question

2. Setting actions in a subquestion

To specify an action in a question, click on the button "edit logic" in the top right corner of the question you would like to add actions to.

This will open up the logic editor for that (sub)question. Here you can specify the actions to take if the student:

  • answers correctly

  • answers incorrectly

For both events (answering correctly and incorrectly) you can specify the action by clicking on the current action.

There are two type of actions:

  • Show a next sub-question
    With this action you specify which question to show after a student correctly or incorrectly answers the question. The numbers are the subquestion identifiers, which you can find in the top left of each subquestion.
    You can only select subquestions which are below the question you are specifying the logic for.

  • Complete the exercise
    With this action you can specify that the exercise is done. For example: by specifying this action in the first question if the student answers correctly, the student will have finished the complete exercise.

When you have selected the desired actions, you can click on "save & close". You can repeat this process for each (sub)question to build your logic.

3. Save the exercise

When you are done with updating the exercise, don't forget to save the exercise by using the save button in the top right corner.

If you are adding new subquestions, these won't be available for selection until
you've saved them. To save new subquestions, you save the complete exercise. See step 3 above.

If you have any questions regarding decision trees or conditional logic, please reach out to us via the chat icon in the bottom right corner.

Did this answer your question?