How do I compare 2 Map variables?

Hello again community,

Both map variables I’m using have an Object for a key and an Enum for a value. I want to compare the two map variables and see if they equal each other, object for object on key and value for value on the keys. Is there a way to do this?

Thank you,
Sabir

Hi Sfoxx28,

Get one of your maps, click and drag a line from its output pin and type, Keys. You’ll get an array of its Keys. Drag from Keys, and search for ForEachLoop. Then get your other map, drag from its pin and type Find. Connect the Array Element pin of ForEachLoop to the input node of Find. As the output, you’ll have a boolean and the Value. You can use the boolean to first check if it is true or not. If it’s true, it means that your 2nd map contained that key and you can get it’s key or implement any other logic you want. The following picture might help in getting what you want.

Hope this helps.

Thanks Vizgin, this helps a lot! I can use it in my blueprints and modify it to fit my needs. I appreciate you taking the time to make this diagram.