Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

TimeIsBetween() and negative numbers


kfoley Jun 5, 2019 03:15 PM

The TimeIsBetween(BeginTime, EndTime, Interval, Units) instruction returns true if the realtime clock falls between the "BeginTime" and "EndTime" arguments. What if one or both of those arguments is a negative integer? For example, if I was interested in performing some action between 00:56:00 and 01:03:00 every hour, I might write:

If TimeIsBetween(-4, 3, 60, Min) Then

 Would this work in the way that I'm expecting it to work?

Log in or register to post/reply in the forum.