Dectecting an integer increase or decrease

Ethan Wise's icon

I am an amateur Maxmsp user with limited experience but i am creating a patch using leapmotion controller. I have raw data being received and am looking for a way to take an integer number that i have and to be able to detect whether that number is increasing or decreasing in real-time and then be able to set an if statement to output a message to a message box, so that if the number is increasing the message box will say "increasing" and if the number is decreasing the message box will say "decrease"

any help would be great,

Thanks.

Len Richardson's icon

You should take a look at the through object.

prephylve's icon

Came across this post with the same question. My solution for this is explained in the [change] object reference file.