FACER Community

Change image depending on time of day AND weather?

Hi! So I know that

$#DISDAYTIME#=1?100:0$

will change an image’s visibility if it’s day or night.

I also know that

$#WCCI#=13?100:0$

will change an image dependent on the weather (in this case, snow!)

Is there any way to combine these two phrases so I can have the background change depending on the time of day and weather? I have tried doing:

$#WCCI#=13?100:0&&#DISDAYTIME#=1?100:0$

but it does not work and just sets the transparency to 100 regardless of what I do (including putting parentheses around each separate phrase.)

Any help would be appreciated!
P.S. I will be either asleep or at work for the next ~16 hours or so, so apologies for any delayed responses!

1 Like
$#DISDAYTIME#=true&&#WCCI#=13?100:0$

To have your weather icon show at night just use false instead of true.

3 Likes

Nice little Tutorial .