- Code: Select all
set t to value of variable "TemporaryAuthCode"
set value of variable "TemporaryAuthCode" to t & "1"
set t to value of variable "TemporaryAuthCode"
set value of variable "TemporaryAuthCode" to t & "1"
t = indigo.variables[VARIDHERE].getValue(int)
indigo.variable.updateValue(VARIDHERE, value=str(t+1))
t = indigo.variables[VARIDHERE].value
indigo.variable.updateValue(VARIDHERE, value=t + "1")
jay (support) wrote:I may have misread your script. On first glance it looked like you were trying to increment a variable. However, your script is appending a "1" onto the end of the variable value. If that's what you want, then:
- Code: Select all
t = indigo.variables[VARIDHERE].value
indigo.variable.updateValue(VARIDHERE, value=t + "1")
Users browsing this forum: No registered users and 6 guests