# Need help identifying what i did wrong in my function node

**URL:** https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769
**Category:** General
**Tags:** function-node
**Created:** [25 April 2022 19:54 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769 "2022-04-25T19:54:47Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [25 April 2022 19:54 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/1 "2022-04-25T19:54:47Z")

</div>

ok so learning javascript on the fly.  
I'm trying to write a function.  
to gather ambient temp and target temp. I need to set up an if ambient is greater then target then msg.payload is 1 , else 0  
here is what i wrote please let me know what i did wrong or what i forgot .  
i just get syntax error for debug.  
also not i did a change node moving the msg.payload for ambient to msg.ambient  
and msg.payload for target to msg.target

```auto
var glycolA = msg.ambient;
var glycolS = msg.target;
 
 If (glycolA>glycolS)
 {
    msg.payload=msg.payload ="1";
 } 
 Else 
 {
    msg.payload=msg.payload ="0 ";
 }
return msg;

```

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [25 April 2022 20:08 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/2 "2022-04-25T20:08:29Z")

</div>

As a test I tried this and it works fine (for me with lower case letters for if/else).

```auto
var glycolA = 15;
var glycolS = 20;
 
 if (glycolA > glycolS)
 {
    msg.payload = "1";
 } 
 else 
 {
    msg.payload = "0";
 }
return msg;

```

```auto
var glycolA = 20;
var glycolS = 15;
 
 if (glycolA > glycolS)
 {
    msg.payload = "1";
 } 
 else 
 {
    msg.payload = "0";
 }
return msg;

```

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [25 April 2022 20:20 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/3 "2022-04-25T20:20:19Z")

</div>

If @Colin saw this he would have a fit.

You have used capitals in you IF/Else. While not a single capital in you sentences.  
(Just joking as i to have been guilty of such solecisms)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [25 April 2022 21:14 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/4 "2022-04-25T21:14:12Z")

</div>

> [@E1cid](#):
>
> If @Colin saw this he would have a fit.

Indeed, I am only just recovering.

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [25 April 2022 21:40 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/5 "2022-04-25T21:40:22Z")

</div>

I Knew It Had To Be Something simple,  
I get zero now but should be getting 1 when when the ambient temp is above the target temp.  
I guess a guy who is poor in gramma shouldn't try to code.  
But honestly, i have been learning a lot if stuff in a short period of time here, so i have a little bit of brain fatigue, maybe even beer fatigue!  
im assuming its the way i refferenced the msg.ambient and msg.target  
i dont think its actually pulling up the number in the message

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [25 April 2022 22:14 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/6 "2022-04-25T22:14:44Z")

</div>

Can you show the msg going into the function node, I suspect they maybe strings not numbers. Add a debug before the function and set it to complete message object.

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [25 April 2022 23:03 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/7 "2022-04-25T23:03:29Z")

</div>

```auto
[{"id":"ac59f7e267fc3d4b","type":"tab","label":"testfunciton","disabled":false,"info":"","env":[]},{"id":"41758f13d98873e3","type":"link in","z":"ac59f7e267fc3d4b","name":"","links":["4c70d126cbf9865b"],"x":144.56469068001942,"y":129.21984140639202,"wires":[["a922fcdd8a17911b"]]},{"id":"a922fcdd8a17911b","type":"change","z":"ac59f7e267fc3d4b","name":"set payload to Temperature value","rules":[{"t":"move","p":"payload.Temperature","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":319.5498962402344,"y":108.76004219055176,"wires":[["3f40293643e84bc1","22014610d4f238ee","abc25e24e1b4cb8d"]]},{"id":"3f40293643e84bc1","type":"ui_gauge","z":"ac59f7e267fc3d4b","name":"Ambient","group":"f5e2c3bf3d5a99b2","order":9,"width":0,"height":0,"gtype":"donut","title":"Ambient","label":"F","format":"{{msg.payload}}","min":0,"max":"200","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":597.9502750101586,"y":125.72012931960525,"wires":[]},{"id":"5fb069e430ec1040","type":"ui_slider","z":"ac59f7e267fc3d4b","name":"Target","label":"Target Temp","tooltip":"","group":"f5e2c3bf3d5a99b2","order":10,"width":0,"height":0,"passthru":true,"outs":"end","topic":"target","min":0,"max":"200","step":1,"x":369.0841790644309,"y":196.25263093958537,"wires":[["65cb62c27f8a575e","4e2e6f3263e9d0dd"]]},{"id":"65cb62c27f8a575e","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":594.4112667723941,"y":211.86670258056373,"wires":[]},{"id":"1bc3fd3f7de03fa3","type":"function","z":"ac59f7e267fc3d4b","name":"","func":"var glycolA = msg.ambient;\nvar glycolS = msg.target;\n \n if (glycolA>glycolS)\n {\n msg.payload =\"1\";\n } \n else \n {\n msg.payload =\"0\";\n }\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":579.8740353073642,"y":306.6278986621994,"wires":[["bc45c97c3fe28e8e"]]},{"id":"22014610d4f238ee","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":572.6054195748493,"y":54.38001605270947,"wires":[]},{"id":"bc45c97c3fe28e8e","type":"debug","z":"ac59f7e267fc3d4b","name":"functionresults","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":816.0087661743164,"y":261.9393939971924,"wires":[]},{"id":"4e2e6f3263e9d0dd","type":"change","z":"ac59f7e267fc3d4b","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"target","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":318.5124053955078,"y":316.3194332122803,"wires":[["1bc3fd3f7de03fa3","b2413d7f8b4d15f4"]]},{"id":"abc25e24e1b4cb8d","type":"change","z":"ac59f7e267fc3d4b","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"ambient","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":757.052197155208,"y":94.76121456668139,"wires":[["1bc3fd3f7de03fa3","e913d344fc808ab8"]]},{"id":"e913d344fc808ab8","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":867.3881687268442,"y":38.22753664712071,"wires":[]},{"id":"b2413d7f8b4d15f4","type":"debug","z":"ac59f7e267fc3d4b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":484.57440681439056,"y":395.1973438339962,"wires":[]},{"id":"f5e2c3bf3d5a99b2","type":"ui_group","name":"Default","tab":"450ac4c9b5c2acc6","order":1,"disp":true,"width":"11","collapse":false},{"id":"450ac4c9b5c2acc6","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

yes your correct, there is in issue with msg.  
 ![debugs](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/506627945c775b5990bdedab643af2ac9a60d39f.png)

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [25 April 2022 23:07 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/8 "2022-04-25T23:07:49Z")

</div>

Hang on - where are the values coming from - it looks to me like you are trying to operate on two messages and then moving their values where you want them ?

Take a step back to start with and explain what you are trying to achieve and where the data is coming from and going to - typically most of this can be done with switch and change nodes - which is where i tell everyone to start (i.e. as much graphical stuff as you can) and then later if you think it is worth streamlining you can come back later and write some function nodes

Craig

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [25 April 2022 23:22 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/9 "2022-04-25T23:22:32Z")

</div>

So the target value is coming from a ui slidebar, I then was using a change node to change to msg.target to keep from mixing things up in function node. The ambient temp is coming from mqtt, I used change mode to change msg.payload to msg.ambient

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [25 April 2022 23:26 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/10 "2022-04-25T23:26:22Z")

</div>

Yeah so the issue is that (from what you describe) you are trying to work on two different messages in the one function node ?

You can not do this - the function node sees each individual message as a distinct entity

So ways around this are to use the join node to join two messages together then you can manipulate them through change nodes etc or use context variables to store the values temporarily between messages

Personally i would use context variables to start with and then try and do it all with graphical nodes rather than functions to start with

Craig

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [25 April 2022 23:28 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/11 "2022-04-25T23:28:22Z")

</div>

Remember something like an IF/Else statement in a function node is really just a branch in a switch node, multiple IF else tests are just additional branches and nested if else blocks and just nested Switch nodes.

Its defintiely (for a beginner) much easier to follow the switch nodes if you label them all properly

Craig

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [26 April 2022 04:23 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/12 "2022-04-26T04:23:38Z")

</div>

So , im really not following what your saying .  
I have ambient temp coming in from mqtt.  
I have a change node setting topic to ambient  
I have the target temp being set by a ui slide bar  
Change node there is setting topic to target.  
 ![topicchangedebug](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8fb8025fc01c99929b1c0e1b68b98208370d0259.png)

i got the join node going however the target temp is created by the slide bar. and doesnt resend message, so it shows them joined together then the target temp drops off.  
 ![joindebug](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/5/05f3697683af5b5601a0dea9bddb256992f2b04a.png)

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [26 April 2022 04:38 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/13 "2022-04-26T04:38:26Z")

</div>

Yep so thats your problem - the slider sets the message only once - when you move it - from then on it is just dead air, whereas your MQTT messages are coming in continually.

Think of the messages as a stream of cars

Your slider control is a blue car - you set it and then you see the blue car drive past on the road until it is out of sight

You then receive an MQTT message - lets call this a yellow car - this message comes in and you grab it and do what you want - however the Blue car is already long gone and aint coming back

So what you need to do is grab the value from the slider - use a change node to put it into a context variable and then when you want to use it in your function node access the context variable and read it in

(but again you could equally access the context variable from a switch node etc)

Craig

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [26 April 2022 04:45 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/14 "2022-04-26T04:45:00Z")

</div>

Have a look at this simple example of setting flow variables with a change node

```auto
[{"id":"ab09c398.80dd5","type":"inject","z":"78b87e52.c9819","name":"Pretend Slider In","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"53","payloadType":"num","x":230,"y":160,"wires":[["64788784.091658"]]},{"id":"e21a514e.9c28d","type":"inject","z":"78b87e52.c9819","name":"Pretend MQTT in","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"15","payloadType":"num","x":220,"y":240,"wires":[["7db2d7e3.0fc2d8"]]},{"id":"64788784.091658","type":"change","z":"78b87e52.c9819","name":"setup Flow Variables","rules":[{"t":"set","p":"SliderIn","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":160,"wires":[[]]},{"id":"7db2d7e3.0fc2d8","type":"change","z":"78b87e52.c9819","name":"setup Flow Variables","rules":[{"t":"set","p":"AmbientTemp","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":240,"wires":[[]]}]

```

Craig

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [26 April 2022 04:50 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/15 "2022-04-26T04:50:45Z")

</div>

lol just got home from brewery was watching a video on context.  
going to try to do before i look at your example.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [26 April 2022 04:51 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/16 "2022-04-26T04:51:48Z")

</div>

Fair Enough - and here is an extension with a couple of switch nodes

```auto
[{"id":"78b87e52.c9819","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"ab09c398.80dd5","type":"inject","z":"78b87e52.c9819","name":"Pretend Slider In","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"53","payloadType":"num","x":230,"y":160,"wires":[["64788784.091658"]]},{"id":"e21a514e.9c28d","type":"inject","z":"78b87e52.c9819","name":"Pretend MQTT in","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"15","payloadType":"num","x":220,"y":240,"wires":[["7db2d7e3.0fc2d8"]]},{"id":"64788784.091658","type":"change","z":"78b87e52.c9819","name":"setup Flow Variables","rules":[{"t":"set","p":"SliderIn","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":160,"wires":[[]]},{"id":"7db2d7e3.0fc2d8","type":"change","z":"78b87e52.c9819","name":"setup Flow Variables","rules":[{"t":"set","p":"AmbientTemp","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":240,"wires":[["19e21491.090b1b"]]},{"id":"19e21491.090b1b","type":"switch","z":"78b87e52.c9819","name":"Check Ambient and Branch","property":"AmbientTemp","propertyType":"flow","rules":[{"t":"gt","v":"15","vt":"num"},{"t":"lt","v":"15","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":780,"y":240,"wires":[["9e94abdb.f02148"],[]]},{"id":"9e94abdb.f02148","type":"switch","z":"78b87e52.c9819","name":"Ambient > 15 - Check Set Point","property":"SliderIn","propertyType":"flow","rules":[{"t":"gt","v":"AmbientTemp","vt":"flow"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":1030,"y":140,"wires":[["b3ed101f.00dea"],["4c9f119d.5154b"]]},{"id":"b3ed101f.00dea","type":"debug","z":"78b87e52.c9819","name":"Need Heat","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1290,"y":80,"wires":[]},{"id":"4c9f119d.5154b","type":"debug","z":"78b87e52.c9819","name":"Otherwise Condition","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1300,"y":200,"wires":[]}]

```

Craig

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [26 April 2022 05:07 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/17 "2022-04-26T05:07:55Z")

</div>

just when I thought I was understanding things a little, you destroyed my mind @craigcurtin .  
so I didn't realize how to set the flow...... even after the video I was trying to do it backwards.  
however what is this doing.

 ![wts](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0e24e85d638bcb1b27726f320e9b957c4743f4b8.png)

also nothing shows up in debug bars when I hit inject.  
and thankyou @E1cid and @Colin you really have me looking over my should and I'm trying to spell check, punctuation check, and trying to use caps in all the right places.

---

<div class="post-metadata">

### Author: ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)
#### Post date: [26 April 2022 05:42 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/18 "2022-04-26T05:42:29Z")

</div>

> [@craigcurtin](#):
>
> Yeah so the issue is that (from what you describe) you are trying to work on two different messages in the one function node ?
> 
> You can not do this - the function node sees each individual message as a distinct entity
> 
> So ways around this are to use the join node to join two messages together then you can manipulate them through change nodes etc or use context variables to store the values temporarily between messages

read this wrong earlier , in the function node i was trying to set these 2 entities as 2 different variables.  
and depending if one was greater or lesser than would depend on the payload sent out by the function node. fyi

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [26 April 2022 05:58 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/19 "2022-04-26T05:58:53Z")

</div>

THis is using a switch node to check if the value that has been set in the Flow Context variable is \> 15 - if it is it will go out to Output 1 - \< 15 then output 2

Craig

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [26 April 2022 05:59 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/20 "2022-04-26T05:59:57Z")

</div>

> [@9toejack](#):
>
> read this wrong earlier , in the function node i was trying to set these 2 entities as 2 different variables.  
> and depending if one was greater or lesser than would depend on the payload sent out by the function node. fyi

Yeah but comes back to the same issue the function node only sees a single message at a time (as does all the other nodes) so you can not set a payload value like that

Craig

[Next page](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769.md?page=2)
