Lingo Dictionary > Symbols > -- (comment) |
![]() ![]() ![]() |
-- (comment)
Syntax
--
comment
Description
Comment delimiter; indicates the beginning of a script comment. On any line, anything that appears between the comment delimiter (double hyphen) and the end-of-line return character is interpreted as a comment rather than a Lingo statement.
The Director player for Java accepts Lingo that uses this delimiter, but comments do not appear in the final Java code.
Example
This handler uses a double hyphen to make the second, fourth, and sixth lines comments:
on resetColors -- This handler resets the sprite's colors. sprite(1).forecolor = 35 -- bright red sprite(1).backcolor = 36 -- light blue end
![]() ![]() ![]() |