Skip to content
Narta Xaymar Dirks edited this page Oct 27, 2026 · 1 revision

Blitz3DBlitzPlusBlitzBasic

Local

Local name[type] [= value][, name2[type] ...]

Description

Declares a variable that only exists in the function (or the main program) that declares it, and hides a Global of the same name. A variable that is assigned without a declaration is local too, but declaring it makes that clear.

Examples

Global x = 1

Function Show()
	Local x = 99
	Print x
End Function

Show()
Print x
99
1

Related Commands

Global, Include, Stop

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally