Trying to get an actor to move to a certain kind of actor with an enum type

I think I’m getting all turned around here.

I’m trying to move to an actor with a certain enum in a certain order. I can get it to move to the closest of the actors, but not the other one first. I think what I’m wondering is how do I get the value of the blackboard int once for each foreach loop? Or am I just staring at this thing for too long.

Thank you.

I got it! I used classes and child classes to move to certain ones designated in different orders in behaviour trees.