Hello,
I am new to Sharptools and need some help with overnight time based rules. How do I set up an IF condition to run only between 10:00pm (day 1) and 8:00am the next day (day 2)? It seems that the rule evaluates the current time of day 2 after midnight, which does not fall between that time range, so the rule does not run.
Any help is very appreciated.
Update: I did find the OR operator in the IF action, so I am going to try IF time is after 10:00p OR before 8:00am. If there is an easier way to do this, please let me know.
Terri,
Thanks for the reply. Here is my current rule. I started with the Time Is Between condition, but the rule did not run. After some youtube tutorials, it seems that if something is triggered after midnight on day 2, the Time Is Between condition is looking at the current date of day 2, so the timeframe from 10p-8a does not apply. But that is just a guess. Did I miss something with the Time Is Between condition?
I changed my rule to look at any time after 10pm with the OR operator and any time before sunrise, so hopefully that should be true regardless of the date and the rule will work.
Either one should work fine. âTime is between 10:00 PM and 8:00 AMâ should be equivalent to âTime is after 10:00 PM -OR- Time is before 8:00 AMâ
Jeffâs rule shows one place where the OR is better though and thatâs where you want to be between some time and sunset/sunrise as âbetweenâ doesnât current support that.