I am unable to count winter occupancy below. - my script is attempting to update the winterCount variable with its revised value.
Suggestions?
- Code: Select all
hseStatus = indigo.variables[1568794432].value
season = indigo.variables[325456157].value
winterCount = indigo.variables[255681698].getValue(int)
if hseStatus == "Occupied":
if season == "winter":
winterCount += 1
indigo.variable.updateValue(255681698, winterCount)