| Reference | Downloads | Github

Counting correct answers online

Description of the problem:
I am creating a modified version of the stroop experiment. To make sure that every participant understood the instructions correctly, I want to end the “training” loop only if 10 answers in a row were correct.

I implemented the following code:

It works well offline, but nothing happens in the online version.

I appreciate every help!

Hi @Lykanon , which version of PsychoPy are you using? I think your code looks ok, but ending loops with the loop.finished attribute was only fixed recently. You may need to update to the most recent PsychoPy (3.1.2).

Hi @dvbridges,
it works thanks to the updated version!

Thank you very very much!!