Compare items in 2 separate lists

Compare items in 2 separate lists

danmic7JH66
Advocate Advocate
452 Views
2 Replies
Message 1 of 3

Compare items in 2 separate lists

danmic7JH66
Advocate
Advocate

Is there an easy way to compare two separate lists and return a list of matching items (items that appear in both lists)?

0 Likes
Accepted solutions (1)
453 Views
2 Replies
Replies (2)
Message 2 of 3

Cobra.007
Enthusiast
Enthusiast
Accepted solution

You can use the function intersection for this.

 

for example:

STRING LIST TP_Bound_Names = intersection(ToolpathTools,BoundaryTools)

Message 3 of 3

danmic7JH66
Advocate
Advocate

Neat, that's exactly what I was looking for, thank you.