[listfunnel] how to get only the elements index ?
Hello,
I'm using the object [listfunnel] to create a two-element list composed of : the elements index, followed by the list element. For example :
1 0.
2 1.
3 0.
4 0.
5 0.
6 0.
Is it possible to get only the element index, in order to send it out directly in a message box when the second number (the list element) matches to "1" (in this example : get "2" and send this information to a message box, because the list element is "1" ?
E'
There are many ways, but the tersest is probably [if $i2 then $i1].
Max Patch
Copy patch and select New From Clipboard in Max.
if it is only about 0/1 maybe a gate is processed quicker.
Thank You Christopher, it works like a charm !
You saved my life ! :-)
Best
E'
argh, please don't double-post these things...
and [zl sub 1] is the cheaper way of doing it.