# I have 2 dynamic arrays, I need to get the index of specific items of the same value and the match their index with items in the second array to get their value, so i can alter the second arrays values

**URL:** <https://forums.unrealengine.com/t/i-have-2-dynamic-arrays-i-need-to-get-the-index-of-specific-items-of-the-same-value-and-the-match-their-index-with-items-in-the-second-array-to-get-their-value-so-i-can-alter-the-second-arrays-values/427880>\
**Category:** Editor Scripting\
**Tags:** arrays, unreal-engine, UE4, Blueprint, question\
**Created:** [June 22, 2018, 12:02am UTC](https://forums.unrealengine.com/t/i-have-2-dynamic-arrays-i-need-to-get-the-index-of-specific-items-of-the-same-value-and-the-match-their-index-with-items-in-the-second-array-to-get-their-value-so-i-can-alter-the-second-arrays-values/427880 "2018-06-22T00:02:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blisters50](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blisters50](https://forums.unrealengine.com/u/blisters50)\
**Post date:** [June 22, 2018, 12:02am UTC](https://forums.unrealengine.com/t/i-have-2-dynamic-arrays-i-need-to-get-the-index-of-specific-items-of-the-same-value-and-the-match-their-index-with-items-in-the-second-array-to-get-their-value-so-i-can-alter-the-second-arrays-values/427880/1 "2018-06-22T00:02:02Z")

</div>

I have 2 dynamic arrays, I need to get the index of specific items of the same value and match their index with items in the second array to get their value, so i can alter the second arrays values. Is there a way to use find with a for each loop?

---

<div class="post-metadata">

**Author:** ![enearle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@enearle](https://forums.unrealengine.com/u/enearle)\
**Post date:** [June 22, 2018, 12:32am UTC](https://forums.unrealengine.com/t/i-have-2-dynamic-arrays-i-need-to-get-the-index-of-specific-items-of-the-same-value-and-the-match-their-index-with-items-in-the-second-array-to-get-their-value-so-i-can-alter-the-second-arrays-values/427880/2 "2018-06-22T00:32:10Z")

</div>

I don’t understand, if you want to make every index match between two arrays, just set one array to other, or even better just use one array. Surely there is something I am missing here.

---

<div class="post-metadata">

**Author:** ![Ey4D0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ey4D0](https://forums.unrealengine.com/u/Ey4D0)\
**Post date:** [November 22, 2021, 7:44am UTC](https://forums.unrealengine.com/t/i-have-2-dynamic-arrays-i-need-to-get-the-index-of-specific-items-of-the-same-value-and-the-match-their-index-with-items-in-the-second-array-to-get-their-value-so-i-can-alter-the-second-arrays-values/427880/3 "2021-11-22T07:44:49Z")

</div>

Hi,  
Any solution to this?  
Currently I am trying to spawn particle count per particle Index or ID.

---

<div class="post-metadata">

**Author:** ![blisters50](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blisters50](https://forums.unrealengine.com/u/blisters50)\
**Post date:** [November 26, 2021, 8:58am UTC](https://forums.unrealengine.com/t/i-have-2-dynamic-arrays-i-need-to-get-the-index-of-specific-items-of-the-same-value-and-the-match-their-index-with-items-in-the-second-array-to-get-their-value-so-i-can-alter-the-second-arrays-values/427880/4 "2021-11-26T08:58:41Z")

</div>

Hi Ey4D0,  
This was a couple of years ago. Relating to index creation for golf scoring.  
I am attaching my blueprints in the hope they help. The idea was to find which holes were par 3. Then adjust their index for high handicap players. if you tell me more of what you want to do, I may be able to help.  
Cheers
