# Setting default value for a numeric node and passing it on

**URL:** <https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148>\
**Category:** General\
**Created:** [15 July 2020 20:30 UTC](https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148 "2020-07-15T20:30:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davej](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davej/32/25150_2.png) [@davej](https://discourse.nodered.org/u/davej)\
**Post date:** [15 July 2020 20:30 UTC](https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148/1 "2020-07-15T20:30:10Z")

</div>

I am having a brain freeze with something that should be really simple..  
I have a numeric input node with a range of 1 - 4.  
I want to provide a default value of 1 which I do via a change node (or an inject).  
However, nothing is being passed out of the numeric node as a result of no 'change' having been made. Only if I actually select 2, 3 or 4 does it actually get passed out and sent on its way.  
I realize this has to be a simple solution but I haven't yet fathomed out what I am missing here!

Thanks

---

<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:** [15 July 2020 21:12 UTC](https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148/2 "2020-07-15T21:12:46Z")

</div>

wire it around the node as well ?

---

<div class="post-metadata">

**Author:** ![davej](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davej/32/25150_2.png) [@davej](https://discourse.nodered.org/u/davej)\
**Post date:** [15 July 2020 21:21 UTC](https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148/3 "2020-07-15T21:21:12Z")

</div>

Yes, I see that but I guess I am being thick as to why it works.

---

<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:** [15 July 2020 21:32 UTC](https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148/4 "2020-07-15T21:32:55Z")

</div>

if it defaults to 1 - then sending a 1 won't go through as nothing has changed. So either the rest of the flow must assume it's in a "1" state or...  
As this is only for initialisation - if you send a 1 - (also via a wire around) - then it will then obviously pass around to set up downstream. If for some reason it's not already 1 and does go to the node then the node will then also send a 1 - but at least the downstream will still be initialised to the 1 state.

---

<div class="post-metadata">

**Author:** ![davej](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/davej/32/25150_2.png) [@davej](https://discourse.nodered.org/u/davej)\
**Post date:** [15 July 2020 22:50 UTC](https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148/5 "2020-07-15T22:50:22Z")

</div>

Many thanks. I have it now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 July 2020 22:50 UTC](https://discourse.nodered.org/t/setting-default-value-for-a-numeric-node-and-passing-it-on/30148/6 "2020-07-29T22:50:24Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
