In HS2 if you did a hs.GetVar(name) and the Global was not yet defined, the hs.GetVar() function returned "Name not found". This could then be used to initiate an hs.CreateVar(name).
In HS4 this code structure throws an exception "A call was made to retrieve a global variable (1Wire) but there are none defined in the system. " and terminate the script.
Did HS3/HS4 change the Gobal Variable scripting methodology? Another possible interpretation of the exception message is that there is an HS4 configuration parameter defining the number of possible Globals in the system, perhaps this is the case?
TIA
Best Regards
In HS4 this code structure throws an exception "A call was made to retrieve a global variable (1Wire) but there are none defined in the system. " and terminate the script.
Did HS3/HS4 change the Gobal Variable scripting methodology? Another possible interpretation of the exception message is that there is an HS4 configuration parameter defining the number of possible Globals in the system, perhaps this is the case?
TIA
Best Regards
Comment