Trying to skip a routine only at the beginning of a loop

If this template helps then use it. If not then just delete and start from scratch.

OS (Macbook Pro Sonoma 14.2.1)
PsychoPy version (2023.2.3)

What are you trying to achieve?:
In my experiment, I’m trying to see how similar participants think two random sports-skills are. I have a movie routine, where the movie file is an excel sheet containing 10 videos, and a similarity response routine after that. I’ve created a loop containing these two routines.

However, as the loop is following a ‘video shown, then similarity response’ structure, this means that the very first video has no prior video for the participant to rate its similarity to. I’d like to try to skip the similarity response routine just for that first video, so that the first video is shown, then a second, then the similarity response routine pops up. The loop should continue as normal after!

What did you try to make it work?:

I’ve tried to copy a trial skip code based on a similar experiment into my own, but the first video still shows without a second. A response routine shows up immediately after the first video.

I’ve added a routine before the loop that shows two movie stimuli being played one after the other, but I’d like every video clip to be randomised, instead of having one movie stimuli that’s fixed before the loop.

This is the code I copied, which is under ‘Begin Routine*’:

if trialnumber==1:

What specifically went wrong when you tried that?:
As above.

I apologise if this is a simple issue - I’m brand new to coding and Psychopy!