How to make background change depending on weather

How do I make the background change? I'm using file:///internalstorage/images/kwgtpictures/$wi(cond)$.jpg

but it doesn't work. I added this code in background-solid-and then the code. It changed to solid when I changed type from image to image with the calculator to type the code.

How do I make it work. I saw another post about a similar question but didn't understand the whole file directory part. Please help


It might be possible that you type the path incorrectly.

Have you tried to type the path using string concatenation, as follows:


"file:///internalstorage/images/kwgtpictures/" + wi(cond) + ".jpg"

Hope this helps.