Hello,
I really can't sort out my problem of infinite loop! I'm reading other discussions on the forum but nothing works here.
I have an overall water counter (Counter Water Garden), I also store the "last value before a change (in "Counter Last Value"), and I'd like to increment a daily counter (I understand there might be different ways to do this but in the future i'll have different daily counters for different situations so I need to solve this use case first).
So, the idea is: when the total counter changes, I compare it to the previous value, and add the difference in my "Delta-day water" counter (and reset the last value to the current value)
This obviously doesn't work: I get an infinite loop.
How should I solve this? Thank you!
image.png
I really can't sort out my problem of infinite loop! I'm reading other discussions on the forum but nothing works here.
I have an overall water counter (Counter Water Garden), I also store the "last value before a change (in "Counter Last Value"), and I'd like to increment a daily counter (I understand there might be different ways to do this but in the future i'll have different daily counters for different situations so I need to solve this use case first).
So, the idea is: when the total counter changes, I compare it to the previous value, and add the difference in my "Delta-day water" counter (and reset the last value to the current value)
This obviously doesn't work: I get an infinite loop.
How should I solve this? Thank you!
image.png
Kommentar