[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]
Running job between 9:00 AM and 5:00 PM every workday
Dim today, date
Dim time_now, time
Dim is_work_time, boolean
Dim is_holiday, boolean
CHECK_WEEKDAY:
Today( today )
isWeekday( today, is_work_time )
If( is_work_time, CHECK_HOLIDAY, DONE )
CHECK_HOLIDAY:
isHoliday( today, is_holiday )
If( is_holiday, DONE, CHECK_TIME )
CHECK_TIME:
Now( time_now )
isTimeBetween( time_now, 9:00, 17:00, is_work_time )
If( is_work_time, SOMETHING, DONE )
DO_SOMETHING:
// Perform the actual job here
// ...
DONE: