Node-Red compare new and previous values

Have you read the section on context variables in the docs?

And then read this thread in the FAQ section Store a value in a function

2 Likes