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.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...