20 trials among the 150 rows in Excel

Since trials.thisN doesn’t work any more, you could set trialIdx=0 in a Begin Experiment code component tab and then add the following to the End Routine tab.

trialIdx+=1
if trialIdx == 20:
    currentLoop.finished=True
1 Like