Not to be confused with Commentary.

A comment is a way of leaving a note in a script without breaking the script. Comments can be created two ways, and are always green. Single line comments are just that, on a single line. They can also be on the same line as text.

-- this comment is a single line
a = 2 -- comments can come after code as well

Comments can be multiple lines.

this is part of a comment
as is this


  • If you use ' $`' in your comments, it will post the comment twice, the 2nd comment being in your comment.
Community content is available under CC-BY-SA unless otherwise noted.