Language Reference - Comments

Although only one statement per line is allowed, a long statement can span multiple lines if an underscore, _, is placed at the end of a "broken" line.

MsgBox(4096,"", "This is a rather long line, so I _
   broke it with the underscore, _, character.")

 

The semicolon (;) is the comment character.  Unless the semicolon is within a string, all text following it is ignored by the script interpreter/complier.

; The next line contains a meaningful, end-of-line comment
Sleep(5000)  ;pause 5 seconds

NOTE:  You cannot put comments on lines ending with underscores!

 

It is also possible to comment of large blocks of script by using the #comments-start and #comments-end directives.