in the code you shared you werent doing the diff w...
# suitescript
a
in the code you shared you werent doing the diff with the for loop, just the for loop with the single record dataset