# Why doesn't ( == ) work in this case

**URL:** <https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484>\
**Category:** Uncategorized\
**Created:** [November 14, 2017, 1:53pm UTC](https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484 "2017-11-14T13:53:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![faramawy](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@faramawy](https://forum.dynamobim.com/u/faramawy)\
**Post date:** [November 14, 2017, 1:53pm UTC](https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484/1 "2017-11-14T13:53:46Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/b/db5b14bb4e274ffce57292efc36a8f9ddc2d61eb.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [November 14, 2017, 1:58pm UTC](https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484/2 "2017-11-14T13:58:36Z")

</div>

I don’t believe that function works with Categories. You can easily convert the categories to strings and check that way though.

---

<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:** [November 14, 2017, 2:00pm UTC](https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484/3 "2017-11-14T14:00:12Z")

</div>

convert them to string.  
use object to string node before enter them to == node.

---

<div class="post-metadata">

**Author:** ![faramawy](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@faramawy](https://forum.dynamobim.com/u/faramawy)\
**Post date:** [November 14, 2017, 2:00pm UTC](https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484/4 "2017-11-14T14:00:46Z")

</div>

thanks a lot , solved

---

<div class="post-metadata">

**Author:** ![faramawy](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@faramawy](https://forum.dynamobim.com/u/faramawy)\
**Post date:** [November 14, 2017, 2:00pm UTC](https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484/5 "2017-11-14T14:00:53Z")

</div>

thanks a lot , solved

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [November 14, 2017, 2:04pm UTC](https://forum.dynamobim.com/t/why-doesnt-work-in-this-case/16484/6 "2017-11-14T14:04:22Z")

</div>

I hit the same issue a while ago: `Object.Equals()` node is the alternative that should be used for testing equality between non-primitive types (credit to @Konrad_K_Sobon)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d97a41ac6a701ae05d1a15a501423ee1bcc62f9a.jpg)
