# How to check the array sequence?

**URL:** <https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912>\
**Category:** Cinematics & Media\
**Tags:** array-nodes, unreal-engine, Array, sequence, UE4, Blueprint, question\
**Created:** [December 26, 2019, 3:23am UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912 "2019-12-26T03:23:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JayBouleur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JayBouleur](https://forums.unrealengine.com/u/JayBouleur)\
**Post date:** [December 26, 2019, 3:23am UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/1 "2019-12-26T03:23:58Z")

</div>

How would you go about checking if the elements in an integer array is equal is with another array?

For instance: Array(A) contains (12345) and Array(B) contains (32451)

I’m trying to get the blueprint to print false unless Array(B) equals (12345)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [December 26, 2019, 7:51am UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/2 "2019-12-26T07:51:45Z")

</div>

Hi,

Just to make sure, are you trying to see if both arrays have matching numbers or they have the same number of indexes?

Regards

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 26, 2019, 11:27am UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/3 "2019-12-26T11:27:03Z")

</div>

You can just directly compare the arrays. Drag a pin from one, press = and you’ll see the ‘identical’ operator 🙂

---

<div class="post-metadata">

**Author:** ![JayBouleur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JayBouleur](https://forums.unrealengine.com/u/JayBouleur)\
**Post date:** [December 26, 2019, 4:16pm UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/4 "2019-12-26T16:16:33Z")

</div>

Both but especially want the arrays to match. Like, say if I wanted to compare two integer arrays, both arrays have to have the same number of index’s and the same elements in the exact same order(not just contain the same numbers)

I got to the point where the blueprint checks whether or not they have the same elements but got stuck after that

---

<div class="post-metadata">

**Author:** ![JayBouleur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JayBouleur](https://forums.unrealengine.com/u/JayBouleur)\
**Post date:** [December 26, 2019, 4:16pm UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/5 "2019-12-26T16:16:41Z")

</div>

Do you mean like this? I tried this method but only picks out what elements the arrays have in common. Is there a way to read the array’s elements and see if they’re in the same sequence as the other?

 ![294447-arrayex.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/f/fef8a2ca5c05bb42bbfab4023701a38edb44018c.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 26, 2019, 4:46pm UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/6 "2019-12-26T16:46:19Z")

</div>

No, like this:

 ![294462-screenshot-2019-12-26-at-164559.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/4/29425e1fa25948534c57a516c456c907a415d3d1.png)

---

<div class="post-metadata">

**Author:** ![JayBouleur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JayBouleur](https://forums.unrealengine.com/u/JayBouleur)\
**Post date:** [December 27, 2019, 12:46am UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/7 "2019-12-27T00:46:52Z")

</div>

Oh! Ok, sorry I misunderstood. How did you do that? I tried to drag a pin and make it but it just brought up the search box as if I looking for a node

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 29, 2019, 12:42pm UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/8 "2019-12-29T12:42:12Z")

</div>

Just drag a pin off, hit the equals, and you will see identical…

---

<div class="post-metadata">

**Author:** ![JayBouleur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JayBouleur](https://forums.unrealengine.com/u/JayBouleur)\
**Post date:** [December 31, 2019, 3:26am UTC](https://forums.unrealengine.com/t/how-to-check-the-array-sequence/459912/9 "2019-12-31T03:26:16Z")

</div>

You were right! My problem was that I was on Unreal Engine 4.21. The node is only on the versions after that I guess.
