×
Menu
Index

GLOBAL Keyword

 
Usage:
GLOBAL name = value
 
Description:
Defines a global variable.
Global variable are similar to regular variables except they are defined in your script outside of any subroutines.
 
Example:
global A = 100
 
sub main()
   printl("The value of A is ", A)
   ChangeA()
   printl("The value of A is ", A)
end sub
 
sub ChangeA()
  A=200
end sub