Any mention of precipitation overrides sky conditions. Thus, the script acts properly when “chance of rain” appears in the forecast.
Best,
Jordan