[solved] randomizing the order of 3 tasks x 2 conditions and 6 questions
Hello hello,
I've designed a behavioural experiment in OpenSesame with 3 related tasks each of which has two conditions. Currently, the OpenSesame 'experiment' is organized into 3 'sequences' for the tasks and containing 2 'loops' & 'sequences' for the conditions, these conditions must occur in order. But, I would like the task order itself to vary.
- How do I randomize the tasks (3 'sequences' within the 'experiment')?
Additionally, I have 6 multiple choice questions, each of which should randomly follow a single condition and not be repeated.
- How(where) do I implement these multiple choice questions so that all are possible but only one occurs following one of my conditions as I have described them?
- How do I randomize the occurrence of my multiple choice questions in this format?
Any help would be greatly appreciated. Thanks for reading through my problem.
Comments
One way is to add the your three
sequences to a 'container'sequenceandloop, like so:Then you define a variable
sequence_nrin container_loop and give it the values 1, 2, and 3 (so three cycles). Finally, you use this variable to run only one sequence for each cycle of container_loop, with the following run-if statements for sequence1, sequence2, and sequence3:This effectively randomizes the order of container_sequence. Does that make sense?
This will require a little Python scripting. At the beginning of your experiment, define all the questions and response options that you want to present. For example:
Now, just before the
form_multiple_choiceplug-in, get one of the questions from the list:Now you can simply use the square-brackets notation to use
[_question],[_option_A], and[_option_B]in yourform_multiple_choiceto define the question and response options.Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks for the help, it was very much appreciated!