Trials is not defined

Hi, I am having a problem with implementing my experiment. I get the error message “trials is not defined” for the second loop, therefore my experiments start to crash when the prior loops finish. Do you have any tips or ideas?

Many, many thanks :slight_smile: