Announcement

Collapse
No announcement yet.

Script error in HS4 but not HS3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script error in HS4 but not HS3

    I am getting this error on a script that ran fine in HS3 and runs fine in HS4 except that it generates this error in the log:

    Running script(2) &if hs.devicevalueex(1337)>hs.devicevalueex(1351) then hs.SetDeviceValueByRef 1351,hs.devicevalueex(1337),True, init error: Syntax error

    I have tried various variation on the syntax with no luck. I have been ignoring this for several versions because the script is working but it is starting to get annoying now.

    Thoughts?

    #2
    The immediate script command in HS4 is still buggy.

    You can get around the issue using the following:

    Code:
    &nhs.version: if hs.devicevalueex(1337)>hs.devicevalueex(1351) then hs.SetDeviceValueByRef (1351,hs.devicevalueex(1337),True)
    Jon

    Comment


      #3
      Thank you jon00. Much appreciated.

      Comment

      Working...
      X