Home      Ask a Question      My Stuff      Help   
  
TimeWorks: Scripting - Overlaps
The overlaps script is triggered if an in AND out punch both fall within the range set by the 2 overlaps times used.

To define what this range means in context we will use an overlaps script below with the times of 6:00am and 9:00am.

If (overlaps (6:00am,9:00am))
{
category = “Example”;
}

For this script to be applied there must be a punch that crossed 6:00am as well as 9:00am. For example, if someone clocks in at 5:45am and clocks out at 9:30am both of your times in the script have been touched and this results in a true statement. The timecard will reflect the category of ‘Example’.

If someone were to clock in at 5:45am and clock out at 8:30am, this script will result in a false statement as both times were not touched and the script will not be triggered.
ID
203
Category
Training
  FAQ's
Date Created
2/21/2008 9:39:21 AM
Date Updated
8/13/2014 3:03:19 PM
Back to Search Results