increase and decrease a number with one

Jun 18, 2011 at 10:34am

increase and decrease a number with one

Hi,

I would like to increase and decrease a number with one by clicking an “increase” and a “decrease” button.
In order to avoid stack overflow, then I need to do some magic … can anyone help me with this?
Perhaps the below patch is a good start, but I don’t seem to be able to figure it out …

– Pasted Max Patch, click to expand. –

Thanks for your help!

K.

#57656
Jun 18, 2011 at 11:19am

Many solutions. I.e this:

`

– Pasted Max Patch, click to expand. –

also you might take a look at [counter]

#206590
Jun 18, 2011 at 12:31pm

How nice! … sometimes life is more simple than you would think :-)

#206591
Jun 18, 2011 at 12:53pm

There is also the [incdec] object.

#206592
Jun 18, 2011 at 12:53pm

What’s wrong with [incdec]?

– Pasted Max Patch, click to expand. –
#206593
Jun 18, 2011 at 1:13pm

Nothing wrong about [incdec] !!! I think he is a very pleasant fellow ;)

#206594

You must be logged in to reply to this topic.