GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Four — Flow Control (continued)
Overview
The return statement causes the execution thread to be passed to the calling function. If there is no calling function, the script exits and returns to its caller which could be the application or another script.
Syntax/Parameters
Syntax
return [parameter];
Parameters
parameter
An optional expression that creates a return value to be returned to the calling routine. If omitted, the function must have been declared as a void type.
Remarks
The data type must match the caller’s expectation. If there is a mismatch, this will result in a fatal error and the script terminating.
Use caution returning handles if declared as local variables, they will be released and the returned handle value will be invalid.
When a function is declared as a void data type, the parameter must be omitted. The last closing brace ending a function does not require a ‘return’ statement.
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.