oskrypuch Posted February 7, 2011 Posted February 7, 2011 I want to create two non-overlapping time periods, but with no "uncovered" time inbetween. With inequalities that is easy ... range one if A .GT/E. 8 and A .LT. 9 range two if A .GT/E 9 and A .LT. 11 All values, including 8 and all values between 8 and 11, but NOT 11 are covered in the two ranges, and there are no values between range one & two. So, now the time interval programming ... program early If On Mon From 5:30:00AM To 8:00:00AM (same day) etc. program later If On Mon From 8:00:00AM To 9:00:00AM (same day) etc. Would that work, or would both programs execute at precisely 8AM? The scenario is a manual force of the IF clause in both programs. I may be answering my own question, but I understand that the execution of a time interval IF clause will trigger at the From time and it will run the THEN clause, and then again at the TO time, and run the ELSE clause. If that is the case with the the manual trigger of the two programs, then all should be OK. What I do not want to happen is to ever have the THEN clause from Program Early and Program Later to be executed at the same time, but I do want all times in the range covered with no uncovered time inbetween. * Orest
oberkc Posted February 7, 2011 Posted February 7, 2011 I think, indeed, that you correctly answered your own question.
oskrypuch Posted February 7, 2011 Author Posted February 7, 2011 Well, somehow, that is very satisfying! * Orest
oberkc Posted February 7, 2011 Posted February 7, 2011 It should be satisfying. It demonstrates your ability to think and to reason. Such skills put you near the top of your class.
Recommended Posts