Return

Exits a function and optionally returns a value to the caller

Keywords

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Void

Quick Summary

Exits a function and optionally returns a value to the caller

Technical Exegesis...

Exits a function and optionally returns a value to the caller. Immediately terminates function execution and returns control to the calling code. For functions with a return type, Return must be followed by an expression of the matching type. For void functions or methods, Return can be used alone to exit early.

Example

Example.bam
; No example implemented yet