VoiceGuide IVR Software Main Page
Jump to content

Evaluate Time Expression

Recommended Posts

If I'm setting up a time expression like this one in the help section:

 

To Play one message during business hours, and one outside business hours of 8:30am and 5:30pm you can use the following expression:

 

($RV_DAY >= 1) and ($RV_DAY <= 5) and ( (($RV_HOUR >= 9) and ($RV_HOUR <= 17)) or (($RV_HOUR = 8) and ($RV_MINUTE >= 30)) or (($RV_HOUR = 17) and ($RV_MINUTE < 30)) )

 

And I want it to run 7 days a week, 10pm to 1am, would it look like this?

 

($RV_DAY >= 1) and ($RV_DAY <= 7) and (($RV_HOUR >= 22) and ($RV_HOUR <= 01))

 

I'm not sure if doing it from 22 to 01 is right. Is it?

Share this post


Link to post

Probably best to just use a "Time Switch" module (or two of them) instead...

But if you want to use the Evaluate Expression module then the expression should probably be:

 

(($RV_HOUR >= 22) or ($RV_HOUR < 01))

Share this post


Link to post

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
×