Increment until x then reset

Hello guys !

I’m currently trying to get a notification on my iphone when the make’s app button is pushed 5 times then reset the count 0 for the next day.

The closest I’ve been to reach it is by creating a watch button trigger, set a variable to zero and add a increment next to it, then a filter for when the value of the increment is 5 make sends a notification and a module to reset but increment value (which doesn’t seem to work since the increment keeps going up)

There’s a screenshot of my scenario:

Thank You !

Hi @yonezu, I think for your case a data store would be a good solution.

You can create a datastore and hold the count there, that way it would exist outside of your scenario.
At the start of your scenario, you can get your record.

Then at the end of your scenario you would either:

a) increment your count if it is less then 4
b) reset your count to 0 if the current count = 4

3 Likes