psychopy.org | Reference | Downloads | Github

Repeat trial loop until a condition

Hi everyone,

I have a very simple experiment, I just want that trials (which are practice trials repeat until participants reach 80% of correct responses). I know I need a code component but I’m really naive, I don’t know if I have to put it in the trial routine, in such a case I don’t know if I have to select end routine or end experiment and I don’t know what I have to specify in the code itself.

I know it’s very basic but I wish somebody can help me, thank you

See if there’s anything helpful here: Conditional loop depending on percentage of correct responses