I see a lot of scripts having the first variables local, why?

3 comments

0

Please use the site question search there are a lot of answers for this common question.

0

you can access global variables anywhere in a script, though for local variables you can only access it inside its scope

0

Right... But i mean, when declaring it local righ in the beggining iisnt the scope the whole script? so isn't it useless? or am i missing something?