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
| |