A global variable is a user-defined memory location that can be used and recalled on any stack in a Macintosh computer.
Global variables differ from local variables in three ways.
First they must be actually identified as global variables. Second, when they are used they must again be identified if they have not already been identified in a script. Third, unlike local variables, global variables can be recalled anywhere in a stack or in any stack in a Macintosh Computer. Other than that Global and Local variables do the same thing. Both store either text or numbers.