Modify records in form in batches

Modify records in form in batches

Hi,

i have a problem where a user inputted quite a lot of data via the form and my deluge script is failing. So is there a way to fetch the records in batches?
There is a checkbox that is invisible to the users that is by default checked. So this way i can distinguish the new records.

My script basicaly looks like this:
  1. for each deal in Deals  [((Decision != "Go" && Decision != "No Go") && Status == "Request for approval")] sort by  NewDeal desc range from 0 to 50 {
  2. //do some other stuff
  3. deal.NewDeal = false;
  4. }

But this is not working and i don't know how to do this in batches (this above does not work), since none is updated to false.