Skip to content
Narta Xaymar Dirks edited this page Oct 28, 2026 · 2 revisions

Blitz3DBlitzPlusBlitzBasic

Return

Return
Return value

Description

Leaves the current Function, giving back value when the function has a return type. In a function declared Void, Return can not give a value. In code that was entered with Gosub, Return goes back to the line after the Gosub.

Examples

Function Sign$(n)
	If n < 0 Then Return "negative"
	If n > 0 Then Return "positive"
	Return "zero"
End Function

Print Sign$(-4)
Print Sign$(0)
negative
zero

Related Commands

Gosub, Goto

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally