# Compare slider with payload value

**URL:** <https://discourse.nodered.org/t/compare-slider-with-payload-value/22200>\
**Category:** Dashboard\
**Created:** [24 February 2020 14:50 UTC](https://discourse.nodered.org/t/compare-slider-with-payload-value/22200 "2020-02-24T14:50:08Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 February 2020 09:13 UTC](https://discourse.nodered.org/t/compare-slider-with-payload-value/22200/23 "2020-02-25T09:13:55Z")

</div>

The notification display the topic (as title) and payload. The payload is currently an object (that we joined together) - and not just a number. You need to add a change node to move the msg.payload.temparature to msg.payload.

If you need to save the min and max over restarts then you need to find out about persistable context - a good write up here - [A guide to understanding 'Persistent Context'](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115)

---

_[View the full topic](https://discourse.nodered.org/t/compare-slider-with-payload-value/22200)._
