Jump to content

Trouble with ELSE


CJVann

Recommended Posts

Posted

I thought anytime an IF became false, the program should become false and run the ELSE statement?  For the example below, if the Den Light is switched On then Off (while the program is still running), shouldn't it become false and run ELSE?  What if the program is not running, and I turn the Den Light Off.... should that cause it to evaluate the statement and run the ELSE?  With the following program, I can find no situation where the ELSE statement runs (Off, Fast-On/Off, Dim/Bright...)

 

If
        Control 'Upstairs / Den / Light' is switched On
 
Then
        Wait  10 seconds
        Set 'Upstairs / Den / Light' 36%
 
Else
        Set 'Upstairs / Master Bedroom / Bedroom Light' On
 
 
Posted

The "If Control 'xxxx' is switched On" never has a False evaluation. Add a check with not switched Off to have the Off command drive the Else

 

If

Control 'Upstairs / Den / Light' is switched On

And Control 'Upstairs / Den / Light' is not switched Off

Then

Guest
This topic is now closed to further replies.

×
×
  • Create New...