# The Nod == doesn't work with categories

**URL:** <https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235>\
**Category:** FAQ\
**Tags:** dynamo\
**Created:** [March 10, 2019, 7:43am UTC](https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235 "2019-03-10T07:43:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.shcheblykin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/m.shcheblykin/32/92853_2.png) [@m.shcheblykin](https://forum.dynamobim.com/u/m.shcheblykin)\
**Post date:** [March 10, 2019, 7:43am UTC](https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235/1 "2019-03-10T07:43:50Z")

</div>

Hello,  
Does anybody know why this logic doesn’t work? And how can I deal with this except converting it to String.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/8/a89850c38cffbcb9432d7b3b1e2c3688c761f60e.png)

---

<div class="post-metadata">

**Author:** ![m.shcheblykin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/m.shcheblykin/32/92853_2.png) [@m.shcheblykin](https://forum.dynamobim.com/u/m.shcheblykin)\
**Post date:** [March 10, 2019, 7:52am UTC](https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235/3 "2019-03-10T07:52:00Z")

</div>

Is this the only way ?

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [March 10, 2019, 7:54am UTC](https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235/4 "2019-03-10T07:54:14Z")

</div>

by using == node you should convert them to string

 ![category](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/6/e61efad66e8bcbf5357471826d6cc0f4113dac21.png)

---

<div class="post-metadata">

**Author:** ![nickt](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@nickt](https://forum.dynamobim.com/u/nickt)\
**Post date:** [March 10, 2019, 5:17pm UTC](https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235/5 "2019-03-10T17:17:53Z")

</div>

you can also get category id for == node.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 10, 2019, 5:35pm UTC](https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235/6 "2019-03-10T17:35:54Z")

</div>

Both work. Reason is that not all elements are compatible, specifically complex ones. Revit Elements, geometries, AutoCAD objects, etc all have to be simplified to be compared via the == node.

---

<div class="post-metadata">

**Author:** ![ruben.romero](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ruben.romero/32/115842_2.png) [@ruben.romero](https://forum.dynamobim.com/u/ruben.romero)\
**Post date:** [July 29, 2021, 11:32am UTC](https://forum.dynamobim.com/t/the-nod-doesnt-work-with-categories/33235/7 "2021-07-29T11:32:59Z")

</div>

> [@khuzaimah.ElecEng](#):
>
> using == node you should convert them to string

you can use the node List.Contains
