# External variables in Range node

**URL:** <https://discourse.nodered.org/t/external-variables-in-range-node/16515>\
**Category:** General\
**Created:** [9 October 2019 18:59 UTC](https://discourse.nodered.org/t/external-variables-in-range-node/16515 "2019-10-09T18:59:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iungo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iungo/32/8099_2.png) [@iungo](https://discourse.nodered.org/u/iungo)\
**Post date:** [9 October 2019 18:59 UTC](https://discourse.nodered.org/t/external-variables-in-range-node/16515/1 "2019-10-09T18:59:39Z")

</div>

Is it possible to use external variables in the Range node?

 ![range](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/bfe9e747eca06f67f4548bdbde63b9f18f50ec63.png)

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [9 October 2019 19:07 UTC](https://discourse.nodered.org/t/external-variables-in-range-node/16515/2 "2019-10-09T19:07:59Z")

</div>

Asked once and then the answer was NO. I think there is not much changed since.

> [@Dynamic input for Range node](https://discourse.nodered.org/t/dynamic-input-for-range-node/3091):
>
> I found that it might be useful if Range node had option to set input range values dynamically. Why? For example I have a set of numeric data and it changes daily. So min and max are different for each day. For graphical representation I range that data into proper scale. But data can have anomalies. High peaks happen and so. For me the graphical representation talks about relativity of current set of the values. Min is at low edge and max is at the top and there will be no need to show any r…

---

<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:** [9 October 2019 19:12 UTC](https://discourse.nodered.org/t/external-variables-in-range-node/16515/3 "2019-10-09T19:12:17Z")

</div>

No - but not hard to create a function that would do that.

---

<div class="post-metadata">

**Author:** ![iungo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iungo/32/8099_2.png) [@iungo](https://discourse.nodered.org/u/iungo)\
**Post date:** [9 October 2019 19:21 UTC](https://discourse.nodered.org/t/external-variables-in-range-node/16515/4 "2019-10-09T19:21:59Z")

</div>

Yes, I will do it.

Also, it will be so good to add the round to decimal places functionality, instead round to nearest integer.
