Delete items in list in Dynamo

Could you tell me,
If I want to delete numbers 2,4,7,9 in list to create a list numbers 1,3,5,6,8 . How do I do ?

There’s a couple ways to do so but here’s one using one of my favorite node :slight_smile:

Thank you, but I not run this fomular

Right-CLick and change Lacing

Ok. Thank you so much

Alternative way to do it:

Python:

a = IN[0]
b = IN[1]
result = []

for i in a:
    if i in b:
	    result.append(True)
    else:
	    result.append(False)

OUT = result
2 Likes

@nguyenquoc993 This should also do the needful

2 Likes

Of course @Vikram_Subbaiah way is always faster/better :slight_smile:

1 Like

Another way …

2 Likes