# Increment Function don't reset value

**URL:** <https://community.make.com/t/increment-function-dont-reset-value/22108>\
**Category:** Questions\
**Tags:** api\
**Created:** [December 17, 2023, 11:39pm UTC](https://community.make.com/t/increment-function-dont-reset-value/22108 "2023-12-17T23:39:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARTgreen](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@ARTgreen](https://community.make.com/u/ARTgreen)\
**Post date:** [December 17, 2023, 11:39pm UTC](https://community.make.com/t/increment-function-dont-reset-value/22108/1 "2023-12-17T23:39:54Z")

</div>

I have a minimum scenario for show you a problem.  
This problem is that the “increment function” don’t reset the value never. I change the option “reset a value after one cycle” or “reset a value after one scenario run”, and any option reset the value.  
I attach blueprint, scenario screenshot and all the bundles.

Thank for your suppot

[blueprint (9).json](https://community.make.com/uploads/short-url/uij3HzG1uNBiDMthRHpHdEceXZq.json) (2.9 KB)

 ![Captura de pantalla 2023-12-18 003020](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/a/7afa9150d00a96a22630ba203d912aa85a1f4f22.png)  
 ![escenario](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/5/f5c16b0b9f9d8036b15fc6a1c2736f720376b476.png)  
 ![increment](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/2/7202f2ee515d980e3a7e6dc20c09bdd9e6701cc0.png)  
 ![repeater](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/3/03c1526f0b6f0bb300993ee496555736a3daf4dc.png)  
 ![Captura de pantalla 2023-12-18 004116](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/4/a4f5a786f5a3f8a0c96f6bd069b49e352ba9d071.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 18, 2023, 4:34am UTC](https://community.make.com/t/increment-function-dont-reset-value/22108/2 "2023-12-18T04:34:17Z")

</div>

Try putting another module as the trigger (don’t use the Repeater as the trigger module).

---

<div class="post-metadata">

**Author:** ![ARTgreen](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@ARTgreen](https://community.make.com/u/ARTgreen)\
**Post date:** [December 18, 2023, 10:38pm UTC](https://community.make.com/t/increment-function-dont-reset-value/22108/3 "2023-12-18T22:38:05Z")

</div>

I need the scenario to start over every time it ends. How can I do it then? Is there any other way without having to use repeater?

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 19, 2023, 5:11am UTC](https://community.make.com/t/increment-function-dont-reset-value/22108/4 "2023-12-19T05:11:32Z")

</div>

I think I know what you’re getting at now.

You shouldn’t be using the Increment module if you need an increment counter to be reset _ **while the scenario is running** _.

- The option “reset a value after one cycle” works with “watch” trigger modules that can generate more than one bundle, and splits them up into multiple cycles based on the [maximum number of cycles](https://www.make.com/en/help/scenarios/scenario-settings#7---max-number-of-cycles) set in the scenario settings. So when each schedule “cycle” is triggered, the increment counter resets.

- The option “reset a value after one scenario run” can be for any type of trigger module. The increment counter starts from 1 when the scenario is triggered.

Both options above does the same for you because you are not using a trigger that watches new changes from an external service that could generate multiple cycles – your increment module only resets when the scenario is triggered.

The “Repeater” module already has it’s own increment that you can customise the increment “step” value, and resets if the repeater is triggered again with another bundle from a prior module.

Is there any reason why you cannot use the `i` (increment/counter variable) of the Repeater module?

If you need a counter within a counter, you can chain/nest multiple repeater modules.

---

<div class="post-metadata">

**Author:** ![ARTgreen](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@ARTgreen](https://community.make.com/u/ARTgreen)\
**Post date:** [December 21, 2023, 11:18am UTC](https://community.make.com/t/increment-function-dont-reset-value/22108/5 "2023-12-21T11:18:53Z")

</div>

Ok, thanks. My problem is fixed.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 4, 2024, 12:07pm UTC](https://community.make.com/t/increment-function-dont-reset-value/22108/6 "2024-01-04T12:07:49Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


