use currentRecord.getLineCount and currentRecord.g...
# suitescript
b
use currentRecord.getLineCount and currentRecord.getCurrentSublistIndex to tell if the current line index is smaller than the line count