Return

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
return [<returnValue>]
Associationscom.livecode.language
Summary

Causes execution of the current handler to end, and control return to the caller.

Parameters
NameTypeDescription
returnValue

The value to return

Description

Use the return control structure to halt execution of the current handler, to return control to the caller, and optionally to return a value. Note:It is a checked runtime error for a value returned from a handler to not match the return type of the handler it is in.