How to use psychopy create interruption task

I meant something like this

Where intr is skipped based on a variable skipIntr which is set in main based on the values of trials.thisN and repeats.thisN. If intr is to be skipped then repeats.finished=True will break out of that loop and move to the next trial.

I can’t help with your actual psyexp file however, because of the amount of AI generated code. You have a code component called JScode but the rest of your code is Python only implying that you don’t want to run the experiment online.