# Compare Arrays for Similar Item

**URL:** <https://forums.unrealengine.com/t/compare-arrays-for-similar-item/83281>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [January 20, 2017, 7:17pm UTC](https://forums.unrealengine.com/t/compare-arrays-for-similar-item/83281 "2017-01-20T19:17:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KrautPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrautPotato](https://forums.unrealengine.com/u/KrautPotato)\
**Post date:** [January 20, 2017, 7:21pm UTC](https://forums.unrealengine.com/t/compare-arrays-for-similar-item/83281/2 "2017-01-20T19:21:43Z")

</div>

Make a For Each Loop (Array 1)  
In the loop:  
Make For Each Loop (Array 2) -\> Output Element Array 1 = Output Element Array 2 -\> return Found

But this will probably kill the performance if the arrays are big, and if the Item at the end of an array is.

Arrays probably support a “find” (in array) function - you could try this too - if existing.

---

_[View the full topic](https://forums.unrealengine.com/t/compare-arrays-for-similar-item/83281)._
