Comments
2 min read
A comment is a piece of text that is ignored by the compiler. Comments may serve as extra documentation, or to temporarily disable a part of the code.
Line comments start with // and end with the end of the line. For example:
// End of scriptterminate_this_scriptOr:
terminate_this_script // End of scriptThere are two ways to write block comments. The first is using curly braces { and }:
wait {comments here} 0The second is using /* and */, similar to C++. They can span multiple lines:
/* This is a multi-line comment. It spans multiple lines.*/Or used in the middle of the code:
set_time_of_day /* hours */ 12 /* minutes */ 30Block comments can not be nested. For example, the following code is invalid:
/* This is a comment /* This is a nested comment */ */