riskyone wrote:Hello: I'm looking for a little help. I'd like to take the average of two variables and place it in a 3rd variable. Can anyone suggest an easy way to do so? I do not know python, but do know a little applescript - hoping scripting is not necessary. Thank you in advance, John.
x = float(indigo.variables[1941717410].value)
y = float(indigo.variables[1506477137].value)
z = (x + y) / 2
indigo.variable.updateValue(283709108, str(z))
Users browsing this forum: No registered users and 1 guest