Determine the current iteration within a loop
Options
espptyltd
Member ✭
Is it possible to determine the current iteration a loop is in?
For example, I have 3 records that I am using a loop on, and I want to build logic into the loop to only run a specific action if the current loop iteration is the first.
I was thinking about building a counter within the loop, but thought there might be a simpler way to achieve this requirement.
For example, I have 3 records that I am using a loop on, and I want to build logic into the loop to only run a specific action if the current loop iteration is the first.
I was thinking about building a counter within the loop, but thought there might be a simpler way to achieve this requirement.
Comments
-
Creates a variable with the value 1 and increments each loop.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback