If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. MAC OS 10.13):
PsychoPy version (e.g. 1.85.4):
Standard Standalone? (y)
What are you trying to achieve?:
I would like to terminate a loop before it activates the last routine for the last cycle. Please see the flowchart below:
The look named block repeats 3 times, but at the last cycle, I want to terminate the block loop before it runs the break_2 routine.
What did you try to make it work?:
In the builder view, I added the following code to the routine break_2:
blockCount = 0
blockCount = blockCount +1
if blockCount =3
block.finished = True
What specifically went wrong when you tried that?:
I couldn’t run the program because it shows an error “invalid syntax” pointing towards if blockCount = 3
I would like to know how can I modify this to get it work. Thank you in advanced!