If I wish to check if current workday and time falls within a specified period, than do xxx, how may I achieve that?
for example:
if (DayOfWeek = Mon, Tue, Wed) and (Time is between "1400 and 1600")
{
; than do xxx
}
I tried the following code but I think I am doing something wrong...
Code: Select all
FormatTime, currentTime_day, , ddd
FormatTime, currentTime, , HH:mm
FormatTime, currentTime_s, , HH:mm:ss
if (currentTime_day = "Mon" or currentTime_day = "Tue" or currentTime_day = "Wed")
and
(currentTime > "14:00" and currentTime < "16:00")
{
; than do xxx
}