Let symbols but not integers pass

nilzie's icon

Hi there,

This question probably has a very simple answer that I can't find. What object can I use to let symbols pass, but not integers?

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

I want to separate the message in the blue message box into letters and integers in this patch. Anyone has any advice?

Emmanuel Jourdan's icon

Have a look at route.

metamax's icon

It seems like the best answer to your question is what EJ said, but the best solution to your problem is more along the lines of zl.slice or unjoin.

If the input was 0 foo, an int and a symbol, route would be all you need. But 0 0 foo is a list, so route can't pass the symbol alone. To do that another object is needed.

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

nilzie's icon

Hey Emmanuel and Metamax, thanks a lot for the help! unjoin did the trick for me. And using routes rightmost outlet too, for dumping what's not an integer, didn't occur to me. Thanks!