# Equal Component not working

**URL:** <https://forums.unrealengine.com/t/equal-component-not-working/489219>\
**Category:** Community & Industry Discussion\
**Tags:** error, compare, unreal-engine, component, question\
**Created:** [September 26, 2021, 1:05pm UTC](https://forums.unrealengine.com/t/equal-component-not-working/489219 "2021-09-26T13:05:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_393115f6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_393115f6](https://forums.unrealengine.com/u/anonymous_user_393115f6)\
**Post date:** [September 26, 2021, 1:05pm UTC](https://forums.unrealengine.com/t/equal-component-not-working/489219/1 "2021-09-26T13:05:40Z")

</div>

I am using Equal Component to check which part of the actor my trace hit. For some odd reason that is beyond my range of intellect, the node always outputs as false. I don’t know why this is and I hope for a fix.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 26, 2021, 1:55pm UTC](https://forums.unrealengine.com/t/equal-component-not-working/489219/2 "2021-09-26T13:55:17Z")

</div>

Can you show the code?

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [September 26, 2021, 2:06pm UTC](https://forums.unrealengine.com/t/equal-component-not-working/489219/3 "2021-09-26T14:06:09Z")

</div>

Try to compare UniqueID. And check which component is casting your hit function with an print (AddOnScreenDebugMessage if c++)
