Variable function

The getglobal function is used to retrieve a global variable's value.