Arbortext IsoDraw > Macro Language Reference > Introduction > Language Basics > Variables
  
Variables
There are two types of variables in Arbortext IsoDraw macros:
local
Local variables have to be defined within a macro and can only be accessed within that macro.
global
Global variables can be accessed from all loaded macros within Arbortext IsoDraw. They have to be defined outside a macro with the keyword GLOBAL.
Example — Global
global gText AS string

MACRO globalsTest
gText = "Hi, I'm a global."
MESSAGE gText
END MACRO
Example — Local
MACRO localsTest
DEFINE myInt AS integer
DEFINE myFloat AS float

myInt = 21
myFloat = 2.77889

MESSAGE myInt
MESSAGE myFloat
END MACRO