if yourStuff
  variable stepThrough = 1
  variable stepLimit = 10
  variable numberOfRows = totalRows(yourStuff)

else
  variable stepThrough = 0

variable stepCount = yourVariable
 do while stepThrough == 1 and not end of yourStuff