you would do the join call after the for loop is c...
# suitescript
j
you would do the join call after the for loop is completed. line_id_list = arr.join(',') after loop is complete.