Jump to content

Programs: The initial "And" or "Or"?


ccclapp

Recommended Posts

Posted

In a program, does it matter if the first "If" statement begins with And or OR, or does that only matter for the subsequent IF statements?

Posted

The terms "and" and "or" are used to logically connect two conditions, just like in standard English grammar.  So, an "and" or "or" without a condition on both sides of it is not doing anything.  I wasn't aware that ISY would let you start off with an "and" or "or" statement, since I have never tried it seeing as there is no logic to it.  But, assuming ISY does let you, there would be no point in doing it.

Posted

thanks to both of you

 

Yes, I agree it would be more clear if the initial statement did not have And or OR as options, but it does.

Posted

The ISY does not know in advance where you are going to insert a statement, so the And/Or option is always there. But neither the And nor the Or are ever placed in front of the first statement. Try it. Insert two If conditions. Move the second statement to the first position. The And or Or no longer precedes that specific condition

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

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