Integrate with limits

hi all,
this is a really stupid question, and i’ve already done something useful using a lot of nodes, loops, and other things that should be great to avoid.
Basically what i need is an integrate, but with minimum and maximum limits. I mean, i can put a map(clamp) after the integrate, but it will continue growing so when i want to go back with values i have to wait a lot.
Anyway attached you can find my way for solving this problem, but i’m completely shure there’s a lot of other ways, more elegant…
thx a lot ;)

limitINTEGRATE.v4p (10.3 kB)

a +/framedelay combo could do the job:

limitINTEGRATE.v4p (8.1 kB)

I was shure someone here had a better way to do that ;)
simple and clear, thank you ;)