---
title: "Loop Number Of Times Step"
url: "https://docs.robotiq.ai/en/article/loop-number-of-times-step"
language: "en"
last_updated: "2025-12-24T14:58:31.451Z"
---

# Loop Number Of Times Step

The Loop Number Of Times step repeats a part of your process a specific number of times. You can use it to automate tasks that happen over and over, like going through many items in a list.

## How to Use the Loop Number Of Times Step

Add this step to your process to make a loop. Any steps you put inside this loop will run each time the loop goes through.

### Step 1: Add the Loop Number Of Times Step

1.  Open your process in the editor.
2.  Drag the **Loop Number Of Times** step into your workflow.

### Step 2: Set up the Loop

1.  Click on the **Loop Number Of Times** step to open its settings.
2.  Give the step a custom name in the **Step Name** field (this is optional).
3.  Set up the input and output details.

## Parameters Explained

**Step Name** (Optional)

-   This is a custom name for the process step.
-   It labels the step box in the editor.

**Number of times to loop** (Required)

-   This tells the loop how many times to run.
-   You can use an existing whole number variable or just type in a number.
-   **Example:** If you set this to `5`, the steps inside the loop will run five times.

**Current index variable destination** (Required)

-   This is where the number for the current loop run is saved.
-   You can use an existing whole number variable or make a new one.
-   The number starts at `0` for the first run, then `1`, and so on.
-   **Example:** If you name this variable `loopIndex`, `loopIndex` will be `0` during the first run, `1` during the second, and so on.

## Related Articles

-   [Define Variable Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/define-variable-step)
-   [Set Variable Value Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/set-variable-value-step)
-   [Next Loop Iteration Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/next-loop-iteration-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/a2176796-3db5-43c8-8388-525de172c597)
