Scope
global var number = 24;
// variableName only exists within Main() since it's local
void Main() {
var variableName = 25;
// no other procedure will be able to recognize 'variableName'
AnotherProcedure();
}
void AnotherProcedure(int variableTest ) {
// This would cause an ERROR.
var test = variableName;
}Variable Scopes
Local
Global
Static
Const
Out Variables
Conclusion
ArraysLast updated