Replace By condition (list and sublist)

I have a problem with Replace By Condition Node.

When I have a list wich just one item and sublists, the node doesn’t work. The warning is “_Converting an array to var would cause array rank reduction and is not permitted”.

but if I have a list only with sublists (even if sublists have only one item), it works.

Do you have and idea :

  • either to convert list to have all item in sublists. I tried with List.slice but It doesn’t work very well.
  • or a node like Replace By condition to works with any list structure ?

Thanks,