Is This Content Helpful?
How can we make this better? Please provide as much detail as possible.
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!")