# Can you check the number of active nodes connected to the current node?

**URL:** https://discourse.nodered.org/t/can-you-check-the-number-of-active-nodes-connected-to-the-current-node/40871
**Category:** Developing Nodes
**Created:** [12 February 2021 13:59 UTC](https://discourse.nodered.org/t/can-you-check-the-number-of-active-nodes-connected-to-the-current-node/40871 "2021-02-12T13:59:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Norberg95](https://avatars.discourse-cdn.com/v4/letter/n/848f3c/32.png) [@Norberg95](https://discourse.nodered.org/u/Norberg95)
#### Post date: [12 February 2021 13:59 UTC](https://discourse.nodered.org/t/can-you-check-the-number-of-active-nodes-connected-to-the-current-node/40871/1 "2021-02-12T13:59:22Z")

</div>

I would like to check the number of connected enabled (or disabled) nodes to to current node ONLY on the input.  
Possibly to check the type of node connected.

---

<div class="post-metadata">

### Author: ![Hypnos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hypnos/32/7566_2.png) [@Hypnos](https://discourse.nodered.org/u/Hypnos)
#### Post date: [12 February 2021 18:30 UTC](https://discourse.nodered.org/t/can-you-check-the-number-of-active-nodes-connected-to-the-current-node/40871/2 "2021-02-12T18:30:26Z")

</div>

This contradicts the concept of Node-RED. Any number of nodes should be able to be connected to one another. Nodes should check whether incoming messages have certain properties and control their behavior depending on these properties (of course also on the node settings).

This is what makes Node-RED so flexible.

---

<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: [13 April 2021 18:30 UTC](https://discourse.nodered.org/t/can-you-check-the-number-of-active-nodes-connected-to-the-current-node/40871/3 "2021-04-13T18:30:37Z")

</div>

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