User Guide

206 Chapter 11: Keywords
end
Usage
-- Lingo syntax
end
Description
Keyword; marks the end of handlers and multiple-line control structures.
Example
The following mouseDown handler ends with an end mouseDown statement.
on mouseDown
_player.alert("The mouse was pressed")
end mouseDown
end case
Usage
-- Lingo syntax
end case
Description
Keyword; ends a case statement.
Example
This handler uses the end case keyword to end the case statement:
on keyDown
case (_key.key) of
"a": _movie.go("Apple")
"b", "c":
_movie.puppetTransition(99)
_movie.go("Oranges")
otherwise: _sound.beep()
end case
end keyDown
See also
case
exit
Usage
-- Lingo syntax
exit
Description
Keyword; instructs Lingo to leave a handler and return to where the handler was called. If the
handler is nested within another handler, Lingo returns to the main handler.