Files
PetroProtsyk-SSharp/Tests/Features.FunctionScope.Simple2.sht
2019-06-15 11:37:21 +02:00

18 lines
255 B
Plaintext

// Creates a global variable
my_variable = 100;
function MyFunction()
{
// Creates a local variable
my_variable = 200;
Test.AreEqual(200, my_variable);
Test.AreEqual(100, global:my_variable);
}
MyFunction();
Test.AreEqual(100, my_variable);