Hi Jeremy,
That works like a charm, THANK you!!
One quick follow-up question, if I may: How can I modify the code such that a new trial starts after a ‘failure’? This code does not let me pass to a new trial until the pattern is reproduced correctly. I’d still like to provide feedback for a wrong match (e.g., ‘Be careful next time), and continue with the next trial. I played with the position of some parentheses, but couldn’t make it work.
Thanks for your patience,
Best,
Ebru