What is a Loop in UiPath?


A loop is used to repeat a set of activities multiple times, either for each item in a collection or until a specific condition is met.

Example: If you have 100 Excel rows, instead of processing them manually one by one, a loop can process all 100 rows automatically.

In simple words: A loop means repeat the same task without writing the same steps again.

Loop Activities in UiPath? Here’s the

  • For Each – Loops through items in a collection. Example : Process each email in a list
  • For Each Row – Loops through rows in a DataTable. Example : Read each row in an Excel DataTable
  • While – Checks the condition first, then executes. Example : Retry while a condition is true
  • Do While – Executes at least once, then checks the condition. Example : Run once, then decide whether to repeat

Break – Exits the loop immediately. Example : Stop when a matching record is found

Continue – Skips the current iteration and moves to the next. Example : Skip an empty row and process the next

Which loop do you use most?

Leave a Reply