Hi everyone, i work on the latest version of PsychoPy : 2023 2.3 on Mac OS
I don’t know if there was an article about it, but if it was I’m sorry, I didn’t find it.
What are you trying to achieve?:
I aim to control “a practice loop” to help my patient understand the real test.
So if I start the practice loop and they understand the objective of the loop I want to “break, exit” with a specific key on the keyboard. But if they didn’t I want to reset/restart a loop when I press on another key.
Since I am a beginner in coding, I don’t get the problem of the multiple codes I have tried for the past few days. What did you try to make it work?:
A loop will only iterate as many times as specified. You can’t restart it. One way is to specify a very large number of iterations and exit the loop when a criterion is met. Another way is to specify a second surrounding loop with a sufficient number of iterations, and break out of this loop when the criterion is met.