you can test for the item count and the current li...
# suitescript
t
you can test for the item count and the current line index