# The While Activity

> The While activity in Studio, used to repeatedly execute a set of activities for as long as a specified condition remains true.

The [While](https://docs.uipath.com/activities/docs/interruptible-while) activity enables you to execute a specific process repeatedly, while a specific condition is met. The main difference between this and the [Do While](https://docs.uipath.com/activities/docs/do-while) activity is that, in the first one, the condition is evaluated before the body of the loop is executed.

This type of activity can be useful to step through all the elements of an array, or execute a particular activity multiple times. You can increment counters to browse through array indices or step through a list of items.
