What I want, is if a certain image is shown then I want to skip to the next routine (Image2). The images are chosen depending on what word is displayed, this is all connected via an excel file.
I’m not an expert, but I would try including a code component that tells psychopy to end the routine if the particular image in question is displayed; that is, is the name of the image that you want to end the Routine comes up and is recorded (so check what the variable name under which this info is being recorded).
Here’s something I’d try:
Where “image” is the variable recording the images being displayed (check your data output otherwise), and “image_fileName” is the specific name of the image you want to end the Routine.
You’ll notice I’m including this in the End Routine tap (to ensure that the data is recorded by the time you give this instruction), but try other locations otherwise (e.g., in a subsequent routine “checkImg” under the Begin Routine tap).
Thank you.
I seemed to have solved the issue, I tried the below code, within a code component in ‘Being Routine’
durFix = 0
if Image == “Fountain Pen.jpeg”:
durFix = 10