# Function with different values in different times

**URL:** <https://discourse.nodered.org/t/function-with-different-values-in-different-times/6024>\
**Category:** General\
**Created:** [21 December 2018 09:55 UTC](https://discourse.nodered.org/t/function-with-different-values-in-different-times/6024 "2018-12-21T09:55:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 December 2018 10:55 UTC](https://discourse.nodered.org/t/function-with-different-values-in-different-times/6024/3 "2018-12-21T10:55:47Z")

</div>

see the example here

> [@Output two attributes in the template](https://discourse.nodered.org/t/output-two-attributes-in-the-template/5983/6):
>
> Which is why I also suggested you look at how to store data. It sounds as if you want both values to be stored. So that when new message comes in for door it picks up the latest value of help and if a new help message comes in it picks up the latest version of door. See [{"id":"bc95c600.8a7ff","type":"inject","z":"44c6969d.6be6c","name":"","topic":"","payload":"Door1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":125.5,"y":121,"wires":[["e74f067f.68d2e8"]]},…

---

_[View the full topic](https://discourse.nodered.org/t/function-with-different-values-in-different-times/6024)._
