List_Find_Matched_Values

This node finds the items in one list that is present in another list. The example script below shows how a list with [1,2,3,4,5,4] is searched for [1,2,4]. This returns the matched values [1,2,4,4] note that 4 appears twice as it is in list A twice, whilst the second output returns the unmatched values [3,5].

Inputs:

ListA (List) – This is the list which will be searched through.

listB (List) – This is the list which are searched for in list A.

 

Outputs:

matched (List) This will return all the elements in listA that are present in listB.

unmatched (List) – This will return all the elements in listA that are not present in listB.

First Published in DexysMidnightNodes Version 0.0.4

Found under List>Clean

Leave a Reply

Your email address will not be published. Required fields are marked *