...

View Full Version : between hours. if statement



ShMiL
03-17-2006, 10:58 AM
thisHour=#23:00:00#
if (thisHour<#16:00:00# and thisHour>#13:00:00#) or (thisHour>#22:00:00# and thisHour<#06:00:00#) then


hours that are between 13:00-16:00 make the if return true
but hours between 22:00-06:00 make it return false.

why is that?

Roelf
03-17-2006, 11:06 AM
it wouldnt surprise me if you had to check for
thisHour>#22:00:00# and thisHour<#24:00:00#
or
thisHour>#00:00:00# and thisHour<#06:00:00#

ShMiL
03-17-2006, 12:03 PM
that's was it
thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum