Forums > MaxMSP

Do spaces matter with expr?

December 11, 2010 | 9:41 pm


I was recently explaining expr to someone and told him that the spaces between the arguments in the expression didn’t matter–meaning there can be white space like this:

$i1 + $i2 * $i3

or not like this:


It seems to work both ways, but I can’t see any definitive statement on spaces in expr.

Does anyone know if the spaces or lack thereof ever become an issue?

December 12, 2010 | 7:21 am

spaces mean nothing.

you can think of the whole expression as a symbol, which is parsed and interpreted inside.

i find this very handy, because you can use spaces only where you want them for better readabilty:

$i1 + ($i2*$i3)

December 13, 2010 | 6:36 pm

Thank you! Exactly what I thought.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP