maybe that's your issue because the index starts a...
# suitescript
n
maybe that's your issue because the index starts at 1 and to do five then you have 1,2,3,4,5 so if you did <numLines without adding 1 you'd end up with 0<-- doesn't exist ,1,2,3,4 and no 5.