Function on variable change....

Function on variable change....

Is there a way to call a function when a variable value changes, i don't care what the new value is, just that it isn't the same as it was previously. I always what to call the same function, and the variable value might for example go from 0->1->2->5->1

Is a numeric RM the best way to do this with all the values possible and just have them calling the same function or is there a way to just say "if variable value has changed call function"?

Editor Operator 8.2
RT Operator 8.1

so no VBSTA etc, just standard functions/scripts.

thanks

David

This is a migrated post! Originally posted on 04.02.2021 by user synergyautomation. Please be aware that information can be outdated.