psychopy.org | Reference | Downloads | Github

NameError: name 'thisTrial' is not defined

OS : Win10
PsychoPy version : 3.2.4
What are you trying to achieve?:
I have designed a Simon task. But it keeps on showing the following error, however, earlier there was no such error. The experiment ran 2-3 times, but when I increased the number of repeats to 50, it showed the following error.

I am attaching the experiment.

simon_cond.csv (126 Bytes) simon_task.psyexp (41.0 KB)

I hope my query is clear.

@triptiverma thisTrial is a loop attribute, so try main.thisTrial['condition'] in your code instead.

Thanks for your help. The code is now running perfectly.