Make a loop in the Wisconsin testing cards

Hello everyone!

PsychoPy version 2022.2.5

I’m currently working on the Wisconsin Testing Cards on PsychoPy. I’m using an openly available experiment on pavlovia ( Julia Sadka / Wisconsin Card Sorting Task · GitLab ) . This problem that I don’t know how to make PyschoPy understand that after 10 correct answers it has to change condition.

Can someone help me?

Thank you in advance.