KMan Posted January 1, 2014 Share Posted January 1, 2014 I was trying to trigger on a switchlinc being pressed with anything other than off (on, fast on, fade up, fade down, fast off, etc), and thought the following would work: If Control 'Kitchen Lights' is not switched Off ... However, this only triggered (and ran the "then" clause) when the 'Kitchen Lights' switchlinc was pressed 'off'. It did not trigger when any other press was done on the switchlinc. What does the "is not" switched off clause do? Thanks, Kyle Link to comment
oberkc Posted January 1, 2014 Share Posted January 1, 2014 it does exactly as you describe: triggers from an OFF command, and evaluates false when triggered. When evaluated at other times (from other conditions/triggers) it evaluates as true. Link to comment
KMan Posted January 1, 2014 Author Share Posted January 1, 2014 it does exactly as you describe: triggers from an OFF command, and evaluates false when triggered. When evaluated at other times (from other conditions/triggers) it evaluates as true. Thanks, that makes sense, for some reason I was thinking it was triggering true. Link to comment
apostolakisl Posted January 2, 2014 Share Posted January 2, 2014 In my mind, I think of the "not switched off" as a double negative. .. so it just does the opposite of what it would do if the "not" were absent. Link to comment
Recommended Posts