Constant

From Director Online Wiki
Jump to: navigation, search

In JavaScript syntax, you can define your own custom constants by using the const keyword.

In Lingo, a constant is a keyword, such as RETURN, which contains a value that cannot be changed.

 put RETURN
 -- "
 "
 RETURN = "carriage return"
 put RETURN
 -- "
 "

By convention constants are written all in capitals. This helps, for example, to distinguish the constant carriage RETURN from the keyword return, used to return a value from a handler.

Lingo Constants