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
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