A local procedure has its own variable scope, isolated from the rest of the program.

It prevents variable conflicts and overwriting.

label j local
jlabel name
Source?date = 2026 print "1) ?date" goto "demo" label "demo" local ' ?date is unknown here print "2) ?date" ?date = 2017 print "3) ?date" return ' global variable has not been altered print "4) ?date" Execution1) 2026 2) 0 3) 2017 4) 2026

global