How to skip items in trial sequence
Hi everyone,
I'm trying to figure out how to skip items in a trial sequence depending on participant responses and am struggling.
Each trial has a series of sketch pads and keyboard response items which run if no keys are pressed. If a key is pressed I want the trial to end and jump to the corresponding feedback item (correct or incorrect feedback). The feedback items are running correctly and so are the sketch pads but I can't figure out how to break the trial if a key is pressed. So in the screen shot below I basically want each "picturechoice" and "reponse" item to be skipable if the participant responds.
I hope that makes enough sense! Thanks in advance for help!

Comments
Maybe you could create a variable, set it up to 0. If a key is pressed change the value of this variable (just a little inline after the response I guess).
Then in trial_sequence_5 you have the runif option. So you could tell each sketch_pad and response to run only if the variable is still at 0.
Well I would do something like that, but I am not an expert and there is maybe something more simple.
Thank you Sylvain. I'll have a look at that. I'm struggling to get my head around it a bit as I'm pretty much a beginner. Thanks for your suggestion :-)
Hey,
Maybe not the most elegant way to do but it works. Look how the variables are initiated and changed depending on the answer, and how it relates to the runif in the sequence.
Best