Convert to Python
Posted: Wed Aug 26, 2020 7:34 am
Appreciate any help with this one. Not sure about the "contains" part.
Thanks,
Carl
- Code: Select all
tell application "IndigoServer"
set theText to value of variable "Weather_Icon"
if theText contains "Clear" then
set the value of variable "Weather_Icon" to "Moon"
else if theText contains "Cloudy" and theText contains "Mostly" then
set the value of variable "Weather_Icon" to "Moon_Mostly"
end if
end tell
Thanks,
Carl