mirror of
https://github.com/PetroProtsyk/SSharp
synced 2026-06-08 12:11:10 +00:00
18 lines
255 B
Plaintext
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);
|
|
|
|
|