How to Pause a loop?

Hi Michael,
I recently came across this thread as I am also looking to insert a break every 40 trials in my experiment (80 unique trials that are repeated twice for a total of 160 trials) I inserted this code into my “begin routine” component:

It does successfully give a break every 40 trials, however it also pauses for the break after the first trial as well. I thought that the initial “trialsN > 0” would prevent this from happening, but it doesn’t seem like it did. Any ideas of why this is/what I can do to fix this?
Thanks so much and let me know!