Omit data in list

Hi All,
I have two sets of lists and I wanted to omit the data which are already available in List 2.
Can anyone please help me with the proper node to use or how can I get the desired result.
below is the snip of two lists.

1 Like

@ansarimdnazir

you can combine the lists and flatten finaly uniqueItem :slight_smile:

KR

Andreas

Hi @Draxl_Andreas
Thanks for your quick reply highly appreciated,
Actually, I do not want to have a unique value in the output.
I want to remove all the values from list one which are available in list 2.
hope you got my point.

Hi @Draxl_Andreas
In result I am interested in getting 4 and 5 as per your snapshot.
I have checked by creating same nodes as shown by you, in out node of List.FilterByBoolMask I am getting Empty List. can be seen in below snap.

@ansarimdnazir

try this way

t = IN[0]
s = IN[1]

list(set(t))

OUT = list(set(t) - set(s))

KR

Andreas

Thank you so much @Draxl_Andreas
its working perfectly now.

1 Like

Hi @ansarimdnazir & @Draxl_Andreas ,

Just FYI there is an OOTB node specifically designed for this:

This node also works if both lists are shuffled.

5 Likes