# If my items I put in array == Recipe?

**URL:** <https://forums.unrealengine.com/t/if-my-items-i-put-in-array-recipe/498822>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [February 16, 2022, 5:21pm UTC](https://forums.unrealengine.com/t/if-my-items-i-put-in-array-recipe/498822 "2022-02-16T17:21:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Cooper\_Creves](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cooper\_Creves](https://forums.unrealengine.com/u/Cooper_Creves)\
**Post date:** [February 16, 2022, 6:43pm UTC](https://forums.unrealengine.com/t/if-my-items-i-put-in-array-recipe/498822/4 "2022-02-16T18:43:06Z")

</div>

Nevermind I found out the quick answer to that.

> [@Compare Arrays for Similar Item](https://forums.unrealengine.com/t/compare-arrays-for-similar-item/83281/2):
>
> 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.

thank you again. it all works.

---

_[View the full topic](https://forums.unrealengine.com/t/if-my-items-i-put-in-array-recipe/498822)._
