Is there a way to autoadvance a routine that will work online?

I have an audiofile that lasts 10 seconds. I would like the routine to end after different lengths of time, thus creating audiofiles of different lengths.

Is there a way to autoadvance a routine after a certain amount of time based on a conditions file, and in a way that will work on pavlovia?

Hi @David_Sidhu, as far as I know continueRoutine = false works the same offline and online. So you could do

if(t >= MyDuration){continueRoutine = false}
1 Like

Awesome, thank you! And MyDuration could reference a column in a Conditions file?

1 Like

Exactly!

Fantastic, thank you!

1 Like