# 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:** 1\
**Showing post:** 23

<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 08:17 UTC](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769/23 "2022-04-26T08:17:39Z")

</div>

I was totally making it more difficult before.

> [@craigcurtin](#):
>
> 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

This really sank in.  
If you only knew how much I searched this last month to find the best options for cooling.  
Right now reflecting on this, its ridiculously easy.  
I added it to my real data and its working great,  
thanks.

 ![inrealworldaction.PNG](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/3612ae1d26074f9673bd31baaea128a21472fd85.jpeg)

---

_[View the full topic](https://discourse.nodered.org/t/need-help-identifying-what-i-did-wrong-in-my-function-node/61769)._
