Navigation:  thinBasic language > Script structure > Functions/Subs >

Return

Previous pageReturn to chapter overviewNext page

 

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