I have built a weather app in Power Apps. I'm using the MSN weather connector to gather several basic criteria, namely "Precipitation". So I have several images I'd like to use for sunny, cloudy, and rainy days. I have a field that I set called "currentPrecip" which I want to change the image based on. This line successfully gives me a gif called "mostly-cloudy" when currentPrecip equals one of these 3 phrases:
If(currentPrecip = "Mostly cloudy" Or "Cloudy" Or "Partly cloudy", 'mostly-cloudy', sunnygif)
Currently, if the currentPrecip is anything else, the image switches to a sunny gif. But I'd like to also include parameters for Sunny and Rainy days. Basically what I'm after is:
- If currentPrecip = "Mostly Cloudy" Or "Cloudy" Or "Partly cloudy" - Display 'mostly-cloudy' gif
- If current Precip = "Rainy", "Rain", "Thunderstorms", "Light drizzle" - Display 'rainy-gif' gif
- If currentPrecip = "Sunny" Or "Clear" - Display 'sunnygif' gif.
I keep getting syntax errors when trying to write this, so any help would be appreciated.