Hi Guys,
I am sure you will all look at this and laugh, but can someone please give me the correct syntax for the below script. I am struggling with it. Also does anyone know a good reference that I can use to work these things out on my own. I am new to the scripting side of things and could really use a guide or crash class.
thanks
MB
I am sure you will all look at this and laugh, but can someone please give me the correct syntax for the below script. I am struggling with it. Also does anyone know a good reference that I can use to work these things out on my own. I am new to the scripting side of things and could really use a guide or crash class.
Sub Main
if hs.IsOn(Z1) then
hs.SetDeviceValue "Z1",off
HS.TriggerEvent(blah blah)
else
hs.SetDeviceVaule "z1",ON
HS.Triggerevent(blu blu)
end if
End Sub
if hs.IsOn(Z1) then
hs.SetDeviceValue "Z1",off
HS.TriggerEvent(blah blah)
else
hs.SetDeviceVaule "z1",ON
HS.Triggerevent(blu blu)
end if
End Sub
thanks
MB
Comment