You can now set global variables. These variables will then be available in all script contexts that execute after. Setting a global variable is as simple as:
globals setMyVariable:theVar.
Globals are used with the same pattern as objective-c properties. When you call "setMyVariable:", it creates a storage pointer called "myVariable". You can subsequently access that variable by calling theVar:= globals myVariable.
Globals are accessible from tokens as well, and user inputs are automatically stored in the globals area.
0
0
Was this article helpful?
0 out of 0 found this helpful