# +1 variable

**URL:** <https://community.homey.app/t/1-variable/18576>\
**Category:** Questions & Help\
**Created:** [September 27, 2019, 12:55pm UTC](https://community.homey.app/t/1-variable/18576 "2019-09-27T12:55:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timo\_Kleinhout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timo_kleinhout/32/12803_2.png) [@Timo\_Kleinhout](https://community.homey.app/u/Timo_Kleinhout)\
**Post date:** [September 27, 2019, 12:55pm UTC](https://community.homey.app/t/1-variable/18576/1 "2019-09-27T12:55:39Z")

</div>

Hello,

Is it possible to use a variable and +1 it every time a specific Flow has started?

I’d like to do something different when a certain number has reached. And when an other flow starts I want to reset this variable back to 0.

Thanks

---

<div class="post-metadata">

**Author:** ![Osorkon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/osorkon/32/43026_2.png) [@Osorkon](https://community.homey.app/u/Osorkon)\
**Post date:** [September 27, 2019, 1:00pm UTC](https://community.homey.app/t/1-variable/18576/2 "2019-09-27T13:00:20Z")

</div>

> [@Timo\_Kleinhout](#):
>
> Is it possible to use a variable and +1 it every time a specific Flow has started?

Yes with better logic App

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/c76fd0cfc3b0af53ead1e9af0d639c332571a85e.jpeg)

> [@Timo\_Kleinhout](#):
>
> And when an other flow starts I want to reset this variable back to 0.

That’s also no problem. → set number Variable

---

<div class="post-metadata">

**Author:** ![Timo\_Kleinhout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timo_kleinhout/32/12803_2.png) [@Timo\_Kleinhout](https://community.homey.app/u/Timo_Kleinhout)\
**Post date:** [September 27, 2019, 1:25pm UTC](https://community.homey.app/t/1-variable/18576/3 "2019-09-27T13:25:33Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Igy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igy/32/22144_2.png) [@Igy](https://community.homey.app/u/Igy)\
**Post date:** [September 27, 2019, 2:41pm UTC](https://community.homey.app/t/1-variable/18576/4 "2019-09-27T14:41:20Z")

</div>

Or you can use build in logic:  
 ![30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/ef699ef26fd87fabf2b1a28fc53e13a67a9abb2d.png)
