Replace Empty list with list?

Hi, Every genius one. I need to replace empty list (s) with new list please see below picture.
Any suggestion to manage this?
Really need your help.

:joy:

@Netinai_Suesut

Hi
I used your wall element id’s below to show you how it works.

1 Like

@Kulkul
Hi … appreciate this … it helps me a lot ! :heart_eyes:
actually i have tried this node but it didn’t work … i might did some mistake :disappointed_relieved:

but what if I have more than one “empty list” to be replaced like the pic below ??
I’ve tried “List map” but it doesn’t work for this case.

You could try with Clockworks List.ReplaceEmptyLists.

1 Like

try that already, doesn’t work either :confused:

@Netinai_Suesut

It is working with clockwork package.Change Lacing to longest.

2 Likes

Maybe this will work for you?

1 Like

Thanks guys… you guys are so genius … very smart solution, you’ve just saved my day !! :heart_eyes:

I’m sorry but it looks like the insert node is inserting a value to sublist 1, despite we are feeding it index 0 and 2. You can use the codeblock as shown below:

lst; elem; indices; [Imperative] { for (i in indices) { lst[i]={elem}; } return = lst; };

4 Likes

Thanks !