# How to Determine if a Node is Disabled in the Runtime?

**URL:** <https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425>\
**Category:** Developing Nodes\
**Created:** [25 August 2024 13:00 UTC](https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425 "2024-08-25T13:00:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachowj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zachowj/32/37522_2.png) [@zachowj](https://discourse.nodered.org/u/zachowj)\
**Post date:** [25 August 2024 13:00 UTC](https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425/1 "2024-08-25T13:00:33Z")

</div>

I'm using `RED.nodes.eachNode` to inspect nodes at runtime, which returns the node definitions. However, I can't find a property or method to check if a node is disabled. Is there a way to access this information within the runtime?

---

<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:** [25 August 2024 13:48 UTC](https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425/2 "2024-08-25T13:48:00Z")

</div>

The disabled node will have a property `"d": true`.

e.g.

```auto
RED.nodes.eachNode(n => {
  if (n.d === true) {
    // it is disabled
  }
})

```

---

<div class="post-metadata">

**Author:** ![zachowj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zachowj/32/37522_2.png) [@zachowj](https://discourse.nodered.org/u/zachowj)\
**Post date:** [25 August 2024 14:07 UTC](https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425/3 "2024-08-25T14:07:02Z")

</div>

Thanks. I saw that on the front end but not the back end. I double-checked, and I am seeing it now. I must have overlooked it.

---

<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:** [8 September 2024 14:07 UTC](https://discourse.nodered.org/t/how-to-determine-if-a-node-is-disabled-in-the-runtime/90425/4 "2024-09-08T14:07:32Z")

</div>

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