C++-Style Bracketing Comments

Topic: version 4 MAXScript Language Improvements/Language Improvements

C++-style bracketing can be used to comment out extended segments of code or add lengthy comments. These comments begin with the two characters /* and end at the next */ (or end of file).

Example:

/* this is a long comment

blah blah

print "debug 1" -- code commented out

more comments

*/

You can also use this within a line to comment out a script fragment:

for i in 1 to 10 do ( /* messageBox "in loop"; */ frabulate i )

Note: The /* and */ have to be adjacent characters. If you leave out the closing */ or make it * /, the rest of the file will be commented out.

See also