A simple approach.
Am 29.09.24 um 21:08 schrieb Peter P.:
Hi list,
I am having lists with a variable number of items and I want to break them up two lists dependent on the presence of a specific item. I can't seem to understand how to do it though. Here's a quick example of what I mean:
1 2 3 4 5 6 look for the number 4 and output two lists (at separate outlets) which are before and after that number 4, giving: 1 2 3 and 5 6 respectively
I'd need the solution to work for lists of other lengths as well, i.e. 55 66 77 88 4 102 -33 should be broken up into 55 66 77 88 and 102 -33 alike.
I tried [route] and [list] objects but can't get them to do what I want.
thanks! P
pd-list@lists.iem.at - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/pd-list@lists.iem.at/message/7EF2SASANM...
To unsubscribe send an email to pd-list-leave@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/