web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / For loop - cannot seem...
Power Automate
Unanswered

For loop - cannot seem to change index value inside loop based on condition

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey im looking for a way to modify the value of the indexer in a for loop based on some condition. However when I try this by setting /increasing the value of the indexer inside the loop, when the end of the loop is met the indexer increments as if it were not forced to updated the index value. 

Anyone with any ideas?

 

Example

For i =0 to 10

 

if condition = true

   i = 4  ' I'm updating the indexer 

end 

next i 

 

Not the syntax i know but trying to give context

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard