Using Director > Writing Scripts with Lingo > Expressing literal values > Expressing constants

 

Expressing constants

A constant is a named value whose content never changes. For example, TRUE, FALSE, VOID, and EMPTY are constants because their values are always the same.

The constants BACKSPACE, ENTER, QUOTE, RETURN, SPACE, and TAB refer to keyboard characters. For example, to test whether the user is pressing the Enter key, use the following statement:

if the key = ENTER then beep