I have list of objects and I have another list of true false.
I wanna make list of all objects are true
like this.
List1:(Curve 1,Curve 2 ,Curve 3 )
Pattern list:(True,False,True)
Expected result: (Curve1,Curve3)
how can I make this function ?
You could write your own custom function and use it in a function node:
Something like this should work:
object [] MaskedList(object [] InList, bool [] Mask){ object OutList = {}; int c = 0; for (int i = 0; i < InList.Count; ++i) { if (Mask[i] == true) { OutList[c] = InList[i]; ++c; } } return OutList;}
Answer Verified By: ehsan mokhtari
thanks alot