Change element in list if contained in another list

HI

I have the following problem and need a little help.

I have a list “List 1” and ich need to search in another list if these are contained. If they are, then i need to substitute in the first list those elements with the equivalent of a 3. List.

Frage für Forum.dyn (16.8 KB)

Thanks in advance

Well, I’m not sure how to fix your python script, but it can be done with nodes thru the use of dictionaries.

HI

Tank you, but I think I made it own my own :slight_smile:

Try

But at the end i have just a little problem putting back the Elements to the start List. Can you help me?

I don’t understand: “(post withdrawn by author, will be automatically deleted in 1 hour unless flagged)”

Kind regards

manually set your last node to longest lacing instead of using auto.

Oh s__t, mine does not work correctly!

I take yours for testing :smile:

HI

It works perfect.

But how can I ignore the Warnings?

Kind regards

Good morning

I have the solution! I made it with Spring Nodes:

Thank you very much!

Regards