detect poti variable change -1 / -1

hi all,

what is the easiest way to compare a variable's value to it's value in the last computing cycle?

basically i want to turn a poti up and down, detect when the value goes +1 or -1.



You need a second variable to store the old value. Just before you update your variable, copy its value to the second variable.

aw yiss..

coming from vvvv where everything is happening at the same time I have to get used to the time flow within loops.

muchas gracias