Python arithmatec
Posted: Tue Nov 10, 2020 3:17 pm
I am trying to update variable C with the difference between Var A and Var B, as follows:
My syntax is not working.
Suggestions?
- Code: Select all
varA = int(dev.states["temperature"])
varB = indigo.variables[1086851778].getValue(int)
varC = indigo.variables[515949397].getValue(int)
indigo.variable.updateValue(varC, varA - varB)
My syntax is not working.
Suggestions?