Hello,
how can I delete multiple names from a list without copying the ‘String.Replace’ node each time?
thank you
Hi alienau2016,
i’m not sure if I understand your goal but you can try List.SetDifference: from list A and list B it gives you A-B
I think @fgn.87 answered your question, but String.Replace
doesn’t remove items. It just replaces a substring value with a new value. If you want to remove multiple items, List.SetDifference
is your best bet. If you want to replace multiple strings with new values then you’ll want something else.
Sets are going to remove duplicates and may not honour index order
If replacement is required then checking if a string contains the value(s) in a list, testing is all false and then using a bit of Design Script can resolve
If you don’t need to maintain the list structure use two FilterByBoolMask nodes to filter the elements and the strings
Thank you all and thank you @Mike.Buttery for the solution, that was actually what I was looking for