# Return nothing in a function with else

**URL:** <https://discourse.nodered.org/t/return-nothing-in-a-function-with-else/46046>\
**Category:** General\
**Created:** [21 May 2021 16:57 UTC](https://discourse.nodered.org/t/return-nothing-in-a-function-with-else/46046 "2021-05-21T16:57:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [21 May 2021 16:57 UTC](https://discourse.nodered.org/t/return-nothing-in-a-function-with-else/46046/1 "2021-05-21T16:57:28Z")

</div>

Hi,  
I need a function with if else, which gets every minute the actually msg.

if ... == 100 than do ... 👌

else "stopp sending msg"

is this possible to make the function not sending a msg as "else" ??

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [21 May 2021 17:01 UTC](https://discourse.nodered.org/t/return-nothing-in-a-function-with-else/46046/2 "2021-05-21T17:01:30Z")

</div>

```auto
else {
return
}

```

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [21 May 2021 17:13 UTC](https://discourse.nodered.org/t/return-nothing-in-a-function-with-else/46046/3 "2021-05-21T17:13:29Z")

</div>

thanks 🤪🤭

---

<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:** [4 June 2021 17:13 UTC](https://discourse.nodered.org/t/return-nothing-in-a-function-with-else/46046/4 "2021-06-04T17:13:51Z")

</div>

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