I have produced a list of True False values and I need to retrieve the index values of the True results.
Unfortunately “Item index” doesn’t accept boolean data. Any smart ideas on how I can do this?
Thanks in advance x
I have produced a list of True False values and I need to retrieve the index values of the True results.
Unfortunately “Item index” doesn’t accept boolean data. Any smart ideas on how I can do this?
Thanks in advance x
Use the Series component to generate an index list the same size as list of true/false values. Then use the Cull Pattern component to cull the index list.
If you want further explanation, post your code.
-Kevin
Thank you You’ve saved me from an hour of frustration!
The posted solution by Kevin works perfectly well. But just for your continued reference, the component that does what you want is “Member Index” (Sets > Sets > Member Index).
Solution provided by @daniMunthali is definitely better, I need to make an effort to use the sets components more frequently.
-Kevin