Get list item by index

Stefan Norinder's icon

How do I get an item from a list by its index?
Let's say I have a list with the following values [11,22,33,44]. I would like to be able to...
pass 0 => 11,
pass 1 => 22,
pass 2 => 33,
pass 3 => 44,
This seems like such a basic thing so I would guess Max have some sort of built in function for this, but I can't find it.
Thanks!

double_UG's icon

zl.nth or zl.lookup

Max Patch
Copy patch and select New From Clipboard in Max.

Stefan Norinder's icon

Thank you! That's just what I needed.

riccardo dapelo's icon

Or the couple listfunnel spray

Max Patch
Copy patch and select New From Clipboard in Max.