Combine Lists and Keep Sublists

Trying to combine the text from 2 different list and keep my levels. I also need to keep my sublists as well. I can do this my flattening my list but then I lose my sublists.

This is what I want to see. I want to be able to keep my sub lists, flattening this list takes them away. I have tried levels at the String.Join nodes and that doesn’t work, and List.Combine doesn’t have levels or lacing.

List.Combine isn’t necessary here as your lists are pretty straight forward.

In a codeblock try this bit of design script: val1 + " - " + val2;

Or use the String.Join node directly instead of the function passing.

Yep the old `val1 + " - " + val2; worked!

I took lunch and the same idea came into my head. I use that method quite a bit just couldn’t think of it.

1 Like