# Preset number of loops

**URL:** https://forums.losant.com/t/preset-number-of-loops/1927
**Category:** Help
**Tags:** workflow
**Created:** [June 26, 2019, 4:08pm UTC](https://forums.losant.com/t/preset-number-of-loops/1927 "2019-06-26T16:08:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)
#### Post date: [June 26, 2019, 4:08pm UTC](https://forums.losant.com/t/preset-number-of-loops/1927/1 "2019-06-26T16:08:49Z")

</div>

How can I make the workflow loop node execute the loop a defined number of times instead of based on values in an array?

---

<div class="post-metadata">

### Author: ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)
#### Post date: [June 26, 2019, 4:09pm UTC](https://forums.losant.com/t/preset-number-of-loops/1927/2 "2019-06-26T16:09:59Z")

</div>

So, if you look in the docs:

> **[Loop Node](https://docs.losant.com/workflows/logic/loop/#configuration)**
>
> Learn more about the Losant Loop Node.

Here it is:

```auto
For numbers, the loop will run the number of times specified by the absolute value of the number rounded up to the nearest integer.

```

---

<div class="post-metadata">

### Author: ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)
#### Post date: [June 26, 2019, 4:15pm UTC](https://forums.losant.com/t/preset-number-of-loops/1927/3 "2019-06-26T16:15:26Z")

</div>

If you just need a static value, that could be a little harder. But, here is the trick:

> **[Mutate Node](https://docs.losant.com/workflows/logic/mutate/)**
>
> Learn more about the Losant Mutate Node.

You can use the Mutate Node to simply add a number to your payload to be used in the Loop Node. Be sure to click “Treat Value as JSON”. If you don’t specify this option, 5 will be a String on the payload and not a Number.
