Need help with a simple script

I’m trying to make a script to turn on/off lights after the clocktime value has reached or is beyond at a certain value… It works but only for day.
It does not print “night” and I’m not quite sure why. Is there a way to make “night” work?
Here’s the script:

2 Likes

In the elseif, it should be “or” instead of “and”. A number cannot be both greater than 18 and less than 7. :+1:

2 Likes

Thanks. I’ve got my script working.

1 Like