How to compare two arrays of the same type

I’m god awful at blueprinting but I basically have an array of type struct, and within that struct is a bool that I want to track the state of. I believe somewhere else on this forum someone mentioned creating a copy of the the array as a sort of “previous state snapshot”. But I have no idea how to compare one array with a copy of itself to see if that bool has changed for each index of the array. Anyone have any idea how I would handle this cleanly?

So long as the types inside them are comparable this setup should work

Apologies but I wonder if you could outline an analogue in BP? I don’t know how to implement C++ changes. Also thank you for the response. And coming out of it…….would I need to store it in another separate array? The end goal of the exercise is get a snapshot of the state of a container that holds weapons or items……..if slots are occupied and if so which ones (which the logic already does) but there’s nothing to do a comparison once it detects the change. Ultimately, I want to have a series of bool conditions driven off of the possible states. These arrays are super small, 2 or 3 indices each.

So here is a snip it of blueprint that I made to try and convey meaning visually. I realize this wouldn’t work but it’s what I want to achieve. But this is the comparison I want to be able to quantify or flip conditions on if this makes sense. I also need to be able to store the index if something was removed. Sorry if this is super convoluted.

There seems to be some confusion, You have marked this post as FN/UEFN I would recommend changing the post or re-posting but with Unreal Engine Tags, UEFN(unreal editor for fortnite) does not have blueprints or C++ it utilizes the verse programming language.

Ah sorry there. Wrong Forum.