How to selectively run questions in OpenSesame

When using different question-forms in your experiment, you need to select the questions you want to run in that specific form. Otherwise your questions will be ran multiple types, but in different question-forms. This can be fixed easily in OpenSesame, by following these steps:

1. Add the variable 'questiontype' to your loop. In this variable, you link each question in your loop to a certain question type. For example:

         question                                                       questiontype            

  • What is your gender?                                     mc                           
  • What is your opinion on OpenSesame?         open

In this example, the blue words represent the variables. As you can see, both questions are now linked to a specifiek questiontype code. Here I used 'mc' for the multiple choice questions, and 'open' for the open questions. You can use any code you want, as long as you are consistent in the use of it. 

2. Open the sequence in your overview. In the table you see all your different question-forms, and a 'run if' option next to it. By changing the value in this run if option, you can contol when each question form should be used. 

Using previous example, change 'always' to '[questiontype]='mc' for the multiple choice question form, and [questiontype]='open' for the open question form. OpenSesame reads everything between [ ] as a variable (this is sensitive for capital letters!). 

To avoid errors, make sure you use the exact same variable and questiontype in both the loop and sequence. 

Now your questions should run in only your selected questiontype!

Questions? Let me know in the contribution section!

Want to learn more about OpenSesame? Follow me by clicking the '+ Follow' button right next to this post!

Access: 
Public
Related content or attachment:
OpenSesame - A Guide
Follow the author: JuliaV
Comments, Compliments & Kudos