The script will execute to the end. Take this for example:
- Code: Select all
x = 3
if x >= 1:
print(1)
if x >= 2:
print(2)
if x >= 4:
print(4)
if x >= 3:
print(3)
The result is:
- Code: Select all
1
2
3
However:
- Code: Select all
x = 3
if x >= 1:
print(1)
if x >= 2:
print(2)
quit()
if x >= 4:
print(4)
if x >= 3:
print(3)
Will yield:
- Code: Select all
1
2
A Python script will (generally) run to the end unless it hits an instruction to stop or throws an error.
With your script, you have to remember that all Indigo variables are stored as strings. So in order to do mathematical comparison, you must convert them to a numeric value using something like:
- Code: Select all
HiTemp = int(indigo.variables[888702738]) # HiTemp
# or
HiTemp = float(indigo.variables[888702738]) # HiTemp
I prefer float where possible as it's more precise.