I am having problems filtering out the correct elements from a list. I have a pickloop that has totes on it with specific destinations. I am routing these based on the distance along conveyor, and I have a script that works for the distance. The trouble I'm having is that I only want to have the destinations that are stored in the tote to be "pullable" if that makes sense.
On each tote I have a label array like this:
And a list with the following entries:
Here is an illustration of the loop:
The logic is that I only want the decision points in "dests" to be applicable for pulling. So in this specific situation, "/DP3" is the closest one, but it's not on the list. Thus, it should choose /DP4 because that's in "dests", and is the closest one.
I have tried to make this work for a few hours and I'd appreciate any help.
pull_based_on_approved_destinations.fsm