you want a for loop and not a while loop there mos...
# suitescript
c
you want a for loop and not a while loop there most likely