# Searching specific structure from array with 1 variable

**URL:** <https://forums.unrealengine.com/t/searching-specific-structure-from-array-with-1-variable/472551>\
**Category:** Editor Scripting\
**Tags:** Variable, Structure, unreal-engine, Array, find, question\
**Created:** [October 7, 2020, 3:32pm UTC](https://forums.unrealengine.com/t/searching-specific-structure-from-array-with-1-variable/472551 "2020-10-07T15:32:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAMBALAIJA2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JAMBALAIJA2](https://forums.unrealengine.com/u/JAMBALAIJA2)\
**Post date:** [October 7, 2020, 3:32pm UTC](https://forums.unrealengine.com/t/searching-specific-structure-from-array-with-1-variable/472551/1 "2020-10-07T15:32:14Z")

</div>

I need to search same way as find note, but only with one variable. How could i do this?

 ![317645-gehrh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/3/ee3c3ae53bcf21ec7ea9111f14aa64e8c1757a1b.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 7, 2020, 4:16pm UTC](https://forums.unrealengine.com/t/searching-specific-structure-from-array-with-1-variable/472551/2 "2020-10-07T16:16:59Z")

</div>

There’s no magic node for this. You step through an array and compare results. Use a _Break_ loop to make this inefficient method a wee bit more performant.

* * *

Or use a [Map](https://docs.unrealengine.com/en-US/Engine/Blueprints/BP_HowTo/WorkingWithMaps/index.html) (Dictionary) where you pair _Keys_ with _Values_. So a `Name | Struct` map, for example. Unlike array iteration, this method is very efficient.
