I am trying to get specific elements in a list of lists…
GOAL: Get all the family elements (index 0 of each list) that have a point with a positive y coordinate. Ex. 6 list, 7 list and 8 list but not 1,2,3,4, or 5.
I basically want to get all the elements in index 0 and filter by a condition in index 1. Then return a single list of familes.
Let me know if you guys need further clarfication.
Another way to word this is ,
To filter the list by all the families if the point y coordinate is not negative… if it is not negative, then returning the family element.
You need to split the lists into points and families separately. Run the condition on the points and then filter the families. Since everything is indexed the same (points match families) you can handle both lists separately without worrying about matching up values.
not at the cpu but I think this designscript should do the trick: lists = List.Transpose(inputList); result = List.FilterByBoolMask(lists[0],lists[1]<0)[“in”];