MAXScript Language Reference > Reserved Keywords, Symbols, Punctuation and Variables >

# C++-style bracketing comments

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:

EXAMPLE
    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

- MAXScript Editor Commands

- Source Code Layout

- Source Code Layout and Continuation Lines