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.
1 Like
@Kulkul
Hi … appreciate this … it helps me a lot !
actually i have tried this node but it didn’t work … i might did some mistake
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
2 Likes
Thanks guys… you guys are so genius … very smart solution, you’ve just saved my day !!
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 !