Is This Content Helpful?
We're glad to know this article was helpful.
The sample script in this article determines if a global variable exists, and if so, it will return the value of the variable.
'-- Substitute "_myGlobal" with your global variable.
'-- See if _myGlobal has been defined
s = Script.Make( "x = _myGlobal" )
If (s.HasError) then
MsgBox.Error( "The global variable doesn't exist", "")
MsgBox.Info("Value = "+ _myGlobal.AsString,"The global variable exists!")