# The While Activity

> While activity that repeatedly executes a block of activities as long as a specified condition is true, checking the condition before each iteration.

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.
