Home      Ask a Question      My Stuff      Help   
  
Scripting - Scripting for a Specific Day of the Week
Using the scripting keyword WEEKDAY, you can write scripts that will only apply to a specific weekday.

Each weekday is represented by a number, as follows:

1 = Sunday
2 = Monday
3 = Tuesday
4 = Wednesday
5 = Thursday
6 = Friday
7 = Saturday

Here is an example script that will only apply to Saturday:

if (weekday = 7)
{
payrate = $1.00;
}

Here is an example script that will apply to multiple days (Saturday and Sunday):

if (weekday = 6 or weekday = 7)
{
payrate = $1.00;
}

Please note, there is another method of writing a script that will affect multiple days of the week, see the following article:

Scripting - Days
ID
336
Category
Training
  FAQ's
Date Created
12/12/2008 9:17:36 AM
Date Updated
10/20/2011 1:42:59 PM
Back to Search Results