PennController for IBEX › Forums › Support › Adding break trials › Reply To: Adding break trials
June 17, 2020 at 11:09 am
#5660
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi Max,
Replace this line:
for (let j = 0; j < sep.length; ++j)
with this:
for (let j = 0; j < sep.length && main.length>0; ++j)
Jeremy