# While

> `UiPath.Core.Activities.InterruptibleWhile`

`UiPath.Core.Activities.InterruptibleWhile`

Checks if the expression inserted in the **Condition** field is True and then executes the activities in the **Body** section of the activity as long as it remains True. If False, execution is halted. Enables you to insert [**Break**](https://docs.uipath.com/activities/other/latest/workflow/break) and [**Continue**](https://docs.uipath.com/activities/other/latest/workflow/continue) activities in the **Body** section, enabling you to break loops, or continue to the next cycle.

## Properties

* **DisplayName** - The display name of the activity.

#### **Input**

* **Condition** - As long as the condition specified in this field is True, the activities in the **Body** of the activity are executed.
* **MaxIterations** - When set, the execution of the loop is performed until the number of iterations is reached. This field supports only `Int32` variables.

#### **Misc**

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

#### **Output**

* **Index** - The zero-based index of the current element in the collection. It can be used for tracking the iterations during execution. This field supports only `Int32` variables.
