Replace false into 1 list

Hi

How could I combine these two lists so it would end up as this. There could also be more than 2 lists.

0 573
1 573
2 false
3 false
4 false
5 573
6 false

More than two lists would probably require Python.
With just two lists you can use a simple IF statement.

  • list1 == false? list2 : list1
    if the value in list1 is false, use the value from list2, else use the value from list1

Away from the CPU but this works in my head… I think. :slight_smile:

  • List.Transpose
  • List.Unique (longest lacing)
  • Object.Type
  • == to test for booleans.
  • Filter the List.Unique values by the mask from the == node.
  • List.Create to rejoin the IN and OUT values into one list.
  • List.Transpose (Again)
  • List.FirstItem (either the value of there was anything in the IN values or the boolean).