Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6600 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm creating a simple script with show custom dialog box that will greets me if its "morning", "noon" "afternoon" or "night". but somehow i can't say simple thing like find me a range from 8am-11am. so help me God.

"

if (Get (CurrentTime) < "4:00:00 AM") and (Get (CurrentTime)>"11:00:00 AM")

Show custom dialog ["Good Morning"]

if (Get ( CurrentTime )>"12:00:00 PM") and (Get (CurrentTime )<"1:00:00 PM")

Show custom dialog ["Noon Time"]

if (Get ( CurrentTime )>"1:00:01 PM") and (Get (CurrentTime)<"4:30:00 PM")

Show custom dialog ["Good Afternoon"]

.

.

.and so on.

"

Please tell me thats not a right way to do time range.

Thank All!

This topic is 6600 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.