ccclapp Posted March 7, 2016 Share Posted March 7, 2016 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? Link to comment
apostolakisl Posted March 7, 2016 Share Posted March 7, 2016 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. Link to comment
ccclapp Posted March 7, 2016 Author Share Posted March 7, 2016 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. Link to comment
stusviews Posted March 7, 2016 Share Posted March 7, 2016 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 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.