I see a lot of scripts having the first variables local, why?
COMMUNITY QUESTION
Is there any use in declaring a variable local instead of global in the beggining of a script? W
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Please use the site question search there are a lot of answers for this common question.
you can access global variables anywhere in a script, though for local variables you can only access it inside its scope
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?