Question

I've just discovered a small oversight in Maxscript. This is a rhetorical question: You can have i -=1 in Maxscript, but why can't you have i-- or --i?

Is there anyway around the above example to disable comments or does this force the user to use the former example to increment a variable by -1?

Was it helpful?

Solution

You can increment with the former or x = x -1. It is a scripting language that is awfully rigid when it wants to be. Convention of the double dash and the double plus do not work.

OTHER TIPS

Because -- means the beginning of a single-line comment.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top