Skip to main content

Return

Type

statement

Summary

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

Syntax

return [<returnValue>]

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.

Parameters

NameTypeDescription

returnValue

any

The value to return

Thank you for your feedback!

Was this page helpful?