Conditional Statements
Hi,
I'm doing a study to investigate the impact of the musical context on episodic memory, depending on the type of sounds and music people listen before memorizing a list of words.
The experiment begins with participants seeing a list of words on the screen, which they have to memorize (codification phase). In the next phase of the experiment (recognition phase) people will see the words they saw before and also new words, and for each one they have to answer two questions: (1) if they saw or not saw the word (allowed responses: s;n); and (2) in which musical context they saw it (allowed responses: 1;2;3). Therefore, I want that the second question only appears on the screen if the answer to the first is that they did not see that word, regardless that is the correct or wrong answer. I've tried to do that with the "run if" option but it doesn't work. Can someone help me please?
Thanks!
Comments
Hi @anabatista ,
You are right that you will need use some
Run-ifstatements to make sure that the second question is only shown (and the second response is only collected) if participants indicated that they recognized the current word as "previously seen". I think the easiest would be a structure like this:Where in my example pressing the "z" means that you recognize the current word.
In the output file, you should use the variables "response_keyboard_response_recognition" and "response_keyboard_response_forced_choice" (or other names, if you named your
keyboard_responseitems differently) because the general variable "response" will be overwritten by the secondkeyboard_responseitem (if executed). Also, note that the value of the column "response_keyboard_response_forced_choice" should only be interpreted if the response to the recognition question was "yes" (here "z").Does this make sense? I uploaded a simple example experiment.
If you need more specific help, feel free to upload your own experiment here so that we can have a closer look.
Cheers,
Lotje
Did you like my answer? Feel free to

Hi Lotje!
It makes sense and now the experiment is running correctly!
Thank you so much for your help!
Great to hear @anabatista ! Thanks for getting back to us. :)
Did you like my answer? Feel free to
