November 20, 200718 yr Newbies I am trying to perform a greeting script wherein if the time is between the range of values, it would return as an afternoon, morning or evening. This is what I have done... If [Get(currenttime) > "6:00:00AM" and Get(currenttime < "12:00:00PM"] Goto Layout() End If The problem is it won't execute properly. Tried to use another If script step but it would just bypass it. Can anyone help? Tnx in advance.
November 21, 200718 yr "6:00:00AM" is not time - it's a text string. Use the Time() or GetAsTime() functions to define a time constant.
Create an account or sign in to comment