Skipping a Pavlovia Survey conditionally in Pavlovia experiment

Hello!

I am using Pavlovia surveys to make sure that participants understand the instructions before they begin the experiment. I do that not for all, but certain blocks. I would like to conditionally skip a Pavlovia survey. I have tried embedding the Pavlovia Survey into a loop and inserting a routine with a code component before the survey that should exit out of the loop:

loop_name.finished = True

but that does not seem to work - it presents the survey anyways. Is there a way of skipping a pavlovia survey conditionally?

Any help would be very much appreciated. Thank you!
-Dominik

You skip loops by setting nReps to zero before they start.

Fantastic, that worked! I can just set the number of repeats dynamically to 0 if a certain condition is met. Thank you!