• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

How to get the loop position/index in the Iterator module?

rfchong

Member
Your Task History ID
IjU3NjYwNTZhMDYzMDA0MzA1MjY4NTUzMDUxMzci_pc
Hello Pabbly Support Team,

I am using the Iterator module to process an array of data from Google Sheets.

Inside the loop, I need to send a message to each person telling them their new position in the queue (e.g., "You are now position 1", "You are now position 2", etc.).

However, inside the Iterator step, I cannot find a variable for the current loop's position number, like 'Current Index' or 'Iteration Count'.

My question is: Does the Iterator provide a variable for the current loop position number (1, 2, 3...)? If so, what is its exact name and how can I find it?

Thank you.
 

Preeti Paryani

Well-known member
Staff member
Hello @rfchong,

Currently, the Iterator module in Pabbly Connect does not provide a built-in variable for the current loop position number (such as "Current Index" or "Iteration Count").

As a workaround, you can add a Counter step immediately after the Iterator. You’ll find the Counter option under the Number Formatter app.
  • Set the initial value to 0.
  • Increment it by 1 for each iteration.
This way, the first loop run will output 1, the next loop will output 2, and so on—effectively giving you the loop count as the Iterator processes each item.
 
Top