I have this blocky script The logic is
Code: Select all
If (vest-mov== on and vest-lux <20)
{
set vestibulo = on
if (time > sunset and pasillo == off )
set pasillo = off
}
else
if (vest-mov== off and vestibulo == on)
set vestibulo = off
The problem is:
Code: Select all
if (time > sunset and pasillo == off )
set pasillo = off
I can not understand why this logic doesn´t work
Any idea?