Download

Must be a better way to compare arrays

Howdy,

I have two 3 element arrays, and I would like to see if the contents of both arrays are the same. I made this working comparison blueprint, but it seems that it could be more efficient. Any ideas on how to do this a better way?

7e48a85991ce6188b2cf37542184f4aca2568bda.jpeg

-Sterling

Hey :).
Use the node “For Each Loop”. Example here : https://wiki.unrealengine.com/Blueprint_Essentials_-12-_For_Each_Loop

Baitot,

Thanks for the reply. I figured that out after I posted.

Cheers,

Sterling

Sterling, I suggest you read up on the basic principles of programming, just read the first 5-6 pages of this: Programming Concepts: A Brief Tutorial for New Programmers – Holowczak.com Tutorials You’ll learn a lot of things that you may not have known you can do.

It’s not that I can’t code. I am just learning my way around unreal and its node based scripting language.

Most importantly, you did take the time to look through my post and offer a suggestion.

01110100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101

-Sterling