# Node-Red compare new and previous values

**URL:** https://discourse.nodered.org/t/node-red-compare-new-and-previous-values/8215
**Category:** General
**Created:** [21 February 2019 10:40 UTC](https://discourse.nodered.org/t/node-red-compare-new-and-previous-values/8215 "2019-02-21T10:40:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [21 February 2019 10:47 UTC](https://discourse.nodered.org/t/node-red-compare-new-and-previous-values/8215/2 "2019-02-21T10:47:20Z")

</div>

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](https://discourse.nodered.org/t/store-a-value-in-a-function/990?u=ukmoose)

---

_[View the full topic](https://discourse.nodered.org/t/node-red-compare-new-and-previous-values/8215)._
