# How to create a switch (on/off) on my flow

**URL:** <https://discourse.nodered.org/t/how-to-create-a-switch-on-off-on-my-flow/95323>\
**Category:** General\
**Created:** [11 February 2025 15:05 UTC](https://discourse.nodered.org/t/how-to-create-a-switch-on-off-on-my-flow/95323 "2025-02-11T15:05:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [11 February 2025 15:15 UTC](https://discourse.nodered.org/t/how-to-create-a-switch-on-off-on-my-flow/95323/2 "2025-02-11T15:15:09Z")

</div>

There are a ton of examples on the forum.

Here is one such way: [Stop inject message - #3 by Steve-Mcl](https://discourse.nodered.org/t/stop-inject-message/44848/3)

> [@Stop inject message](https://discourse.nodered.org/t/stop-inject-message/44848/3):
>
> you can easily achieve this with a function node...
> 
> ![QaWHgFcxqx](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7f569845ee88b893b9af06722a9178c1d6c6162d.gif)

You could also install a `gate` node to do the same thing

---

_[View the full topic](https://discourse.nodered.org/t/how-to-create-a-switch-on-off-on-my-flow/95323)._
