Make some layers only visible at night time

I made a layer to be visible at night only. I used expression-
$ #DISDAYTIME# == “True” ? 0 : 100 $
But it is not working.
Please help me.


1 Like

how about changing it to so that a layer is transparent during the day?

Swap 100 and 0 with each other.