Newbies stewart941 Posted November 20, 2007 Newbies Posted November 20, 2007 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.
comment Posted November 21, 2007 Posted November 21, 2007 "6:00:00AM" is not time - it's a text string. Use the Time() or GetAsTime() functions to define a time constant.
Recommended Posts
This topic is 6214 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now