A dumbed down version
OK, for some reason, I can't seem to post another reply to my thread right now, so I had to start a new one. Poor etiquette I know. Sorry.
Why doesn't this work? If the variable is global, why does Maya say it's undefined?
global proc localGlobal ()
global string $thisIsAGlobalVariable = "It's global.";
global proc printIt ()
print $thisIsAGlobalVariable ;