Return

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Language > Script structure > Functions/Subs >

Return

 

Description

 

Exits immediately from the currently executing function to the calling routine, optionally returning a value

 

Syntax

 

Return [ expression ]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning





 

Remarks

 

Return is equivalent to the following code:

 

Function = [ReturnValueIfPresent]

Exit Function

 

Restrictions

 

See also

 

Examples