; Global Example ; -------------- ; A Global variable is visible everywhere - including inside functions Global score=0 AddScore(100) AddScore(250) AddScore(50) Print "" Print "Final score: "+score Print "" Print "Press any key to close the example" WaitKey End ; The function reads and changes the Global score directly Function AddScore(points) score=score+points Print "Scored "+points+" points - total is now "+score End Function