Dynamo Strings with multiple filters

Hello,

I am trying to combine multiple string filter to one, can anyone help me with this. Have attached image below

Hi!

Have you tried the node to code function?

1 Like

Is this what you’re after? Obviously connect your actual element list to the List.FilterByBoolMask node, but otherwise this should work

1 Like

I would group by key of the starting string as a start, then ask what the key value is to set the right parameter value(s) accordingly.

1 Like

Hello,

Tried your response but still getting error.

This is the out put required , I got the solution but could nt combine into simple format the code looks big.

Thank you

1 Like

You can use a list of input strings with String.StartsWith and list levels to mask the inputs into groups. Then you should be able to use the same list structure to write each value to the list of sorted strings.