Joining string lists. Drop the nulls

Probably an easy one for you guys.
I’m trying to join two lists and only keep the values that aren’t null or “”.

Using the A+B drops D. Why? Is there a better way?
Thanks again!

Amigo @Jack buenas, you want Joint List, or Join Strings??
Check this out!!

2 Likes

@Jack ,

you can also use boolean operators.

f.e.

KR

ANdreas

2 Likes

Thanks! List.SetUnion was the solution. So simple :smiley:

I got excited that it appeared to work, but it put the results out of order. Keep the list structure is vital.

2 Likes

Thanks Hamish. Transpose,Concat,Flatten. Thats going to be used a lot.

1 Like

Hi @Jack ,

I think in your first attempt with the Code Block “a+b” does drop the last item since it is (automatically) set to shortest lacing.
If you use the + node, not a code block, and set it to longest lacing it should work.