# Exact Matches - Element.FilterbyName

**URL:** <https://forum.dynamobim.com/t/exact-matches-element-filterbyname/82642>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [November 1, 2022, 9:15am UTC](https://forum.dynamobim.com/t/exact-matches-element-filterbyname/82642 "2022-11-01T09:15:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.hoper9DMVY](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@m.hoper9DMVY](https://forum.dynamobim.com/u/m.hoper9DMVY)\
**Post date:** [November 1, 2022, 9:15am UTC](https://forum.dynamobim.com/t/exact-matches-element-filterbyname/82642/1 "2022-11-01T09:15:43Z")

</div>

Hi - I am trying to create a new schedule within Revit using the below script. The issue I am currently having is that, it isn’t exactly matching the field names within my Code Block, and is adding any fields which slightly relate to the field names I am inputting. For example item 6 on the Code Block is “Bham\_Floor” the schedule is showing this field, along with 3 others - Any items how I can get exact matches only?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/2/d27904fd39b4412c06a513f77b8c6af009b61cd8.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/1/a1addd9da3b884c4f6e6808d8c824a2e867e6c4c.png)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 1, 2022, 11:12am UTC](https://forum.dynamobim.com/t/exact-matches-element-filterbyname/82642/2 "2022-11-01T11:12:19Z")

</div>

Hi @m.hoper9DMVY ,

See if an approach like this helps:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/1/f19fff4ed8e88647e47e18d60f093b0cdd649634.jpeg)

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [November 1, 2022, 11:13pm UTC](https://forum.dynamobim.com/t/exact-matches-element-filterbyname/82642/3 "2022-11-01T23:13:57Z")

</div>

== and a BoolMask node might help. Could be condensed relatively easily into some designscript if preferred.

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

You could also edit your own version of that Clockwork node. Inside it uses String.Contains, you could modify this to instead be == similar to above.

---

<div class="post-metadata">

**Author:** ![m.hoper9DMVY](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@m.hoper9DMVY](https://forum.dynamobim.com/u/m.hoper9DMVY)\
**Post date:** [November 2, 2022, 10:11am UTC](https://forum.dynamobim.com/t/exact-matches-element-filterbyname/82642/4 "2022-11-02T10:11:13Z")

</div>

Thanks for this - I changed the node itself to include == at it’s worked!

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 2, 2022, 11:39pm UTC](https://forum.dynamobim.com/t/exact-matches-element-filterbyname/82642/5 "2022-11-02T23:39:52Z")

</div>

Hi @m.hoper9DMVY ,

Just FYI, if that node is from a package, i.e. Clockwork, your edits WON’T change for others when using the same script, the node (.dyf-file) is only changed on your end.
