How can we use Loop Structures in Deluge script?

How can we use Loop Structures in Deluge script?

Hi, I am using GetRecords() function to fetch records from a module in Zoho CRM, 
the number of records is 800+, but GetRecords() function returns 200 records at one time, 

So, I want to use loops to achieve my task, but it gives me error when i use any loop instead of For each loop.

How can I perform my task?

Please help Zoho community.
Thanks