Jump to content

Why is and is not received?


Exten

Recommended Posts

Posted

I see constructs like below in many many programs.

Almost all I think. What is the strategy - why test to see if something

is both on and off at the same time? Evidently, things can happen that

present both conditions near simultaneously?

 

 

Program X-10 D4 Status

If

X10 'D4/On (3)' is Received

And X10 'D4/Off (11)' is not Received

Posted

Wouldn't the else clause run anyways if no D4/on were received?

Why have to explicitly test for it?

 

Please pardon my denseness....

Enjoy your weekend Lee, Thanks.

Posted
Wouldn't the else clause run anyways if no D4/on were received?

No.

 

"If X10 'D4/On (3)' is Received" would be triggered only by reciept of an "on" command. Bright, Dim, and Off would not trigger an evaluation of the condition and no "false" evaluation would ensue.

Guest
This topic is now closed to further replies.

×
×
  • Create New...