Loop Break Skips Online

Description of the problem: I am using the latest version of PsychoPy and am trying to include a break after half of the trials have been presented, in this case that would be trial 304. This break works perfectly in PsychoPy, but does not appear in Pavlovia. There is no error in Pavlovia, it just skips the break. I have looked at some other answers, but have been unable to solve this. I have attached images of my loop and break code.

.thisN doesn’t work online unfortunately

You need to use a bespoke variable

Thanks for your reply! I apologize as I am a bit new to PsychoPy, but what do you mean by a bespoke variable?