message "set $1" doesn't work after $11?

Mari Kimura's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi,
A student pointed out that the set message breaks after $10, and adds backslash "/" and becomes "set /$11". Is there a reason for this, and is there a way around it so he can use "set $11", $12 and so on?
Thanks,
mari

LSka's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Could this be a workaround?

vichug's icon

Hey,
there are certainely workarounds for this (like LSKA's) ; as for the reason, it's simple : the $ arguments supported are only 1 through 9. In fact $ will only affect the first numerical character after it, and $0 doesn't exist neither i think. If you do :
[0]
|
($10)
|

the result will be "00" and whatever you input, it will be "[input]0" ; so $1 will be replaced by the first element of the input, and 0 will stay 0 and be glued immediately to the input element and both things will create a new symbol (hence the "" around it).

Mari Kimura's icon

Thanks so much, I will forward this!
best
mari