# Can we limit number of input wires connecting to a specific node?

**URL:** <https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961>\
**Category:** Developing Nodes\
**Created:** [12 October 2023 08:57 UTC](https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961 "2023-10-12T08:57:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zubong](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@zubong](https://discourse.nodered.org/u/zubong)\
**Post date:** [12 October 2023 08:57 UTC](https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961/1 "2023-10-12T08:57:59Z")

</div>

I have a operation node which takes 2 operands so I want to limit the number of input wires connecting the operation node.! Is there any way to do that.?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [12 October 2023 09:27 UTC](https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961/2 "2023-10-12T09:27:12Z")

</div>

Hi @zubong

You cannot limit the connections going into the Node.

without knowing the design..

your options are.

- Design the logic to only do what it needs, when both message parts have been received?
- Use the `Batch` node

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/590e7fb225667ffae6a6a64e1d81df8b6d525d8a.png)

---

<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:** [12 October 2023 09:29 UTC](https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961/3 "2023-10-12T09:29:16Z")

</div>

No. that is not a thing supported.

Consider a user may want to condition input to the node via a swtich (or similar) and _NEED_ 3 inputs.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/c/3cb72c0ea1cc93a631f088d0cbf965fd04899979.png)

And anyhow, the only way to differentiate inputs is via the `msg` object any way. For example, this has 2 inputs - but it means nothing!:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/dfe4a715e45c95e3d0df5b37836b66cb7aa80158.png)

In other words, re-think your design. 😃

---

<div class="post-metadata">

**Author:** ![zubong](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@zubong](https://discourse.nodered.org/u/zubong)\
**Post date:** [12 October 2023 09:39 UTC](https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961/4 "2023-10-12T09:39:40Z")

</div>

thank you..! I'll check the same.!

---

<div class="post-metadata">

**Author:** ![zubong](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@zubong](https://discourse.nodered.org/u/zubong)\
**Post date:** [12 October 2023 09:40 UTC](https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961/5 "2023-10-12T09:40:51Z")

</div>

Ok Thanks.! I'll se what I can do.!

---

<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:** [11 December 2023 09:41 UTC](https://discourse.nodered.org/t/can-we-limit-number-of-input-wires-connecting-to-a-specific-node/81961/6 "2023-12-11T09:41:14Z")

</div>

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