Hi, I can’t seem to find out how to count items in a list. I’d like to send a message to an object and have it output the number of items in the list.
I’m trying to avoid externals in this patch.
3 14001 245 should output 3
6 89 22 45 3 55 66 should output 7
Seems like this should be easy…probably n mode or switch on the zl object but I can’t find it.
Thanks in advance.
try zl len
[zl len ]
It’s documented in the xl help file.
Exactly what I needed, thanks very much!
Log in to reply
C74 IN YOUR INBOX
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.