since you have no return it is returning undefined...
# suitescript
j
since you have no return it is returning undefined, which is falsy, so it will stop after the first iteration, no matter how many results you have