[SOLVED] Node-Red and previous.state

Thanks

When I paste it into a Function node, it instantly shows this “Assignment in conditional expression” error

and “oldValue used out of scope”

image