01-04-2011 07:41 AM - edited 03-14-2019 07:08 AM
Just a quick question as I'm sure I can test this to see but I'm hoping that someone might know the answer.....
If I'm doing a date check in and IF node in either a routing or admin script, I don't think there would be a difference, would the following work? What I'm looking to do is on a specific date, change the call flow. So if on 1/10/2011, I need node A to flow to node C instead of A to B, it would automatically follow this path on the specified date.
date()>=date("11/26/2010") or would it be something like now()>=date("11/26/2010")
If I cant do a >=, a > would work also.
Thanks,
paul
01-04-2011 08:05 AM
Surprisingly, I had time to test this quickly, it looks like adding a node with now()>=date("11/26/2010") works, I tested with future, past and today's date, so I guess I answered my own question...unless anyone has any other feedback on this?
thanks
01-05-2011 06:51 AM
What you're doing will work, obviously.
But I will say that, when I worked in ICM training, we would always suggest to use the CallType Manager, and schedule different scripts for different days of the week, or time of day, vs. using lots of Date/Time/If nodes within the scripts themselves.
More, smaller scripts can be easier to manage vs. one large script with many branches.
YMMV.
01-05-2011 07:08 AM
Thanks, I'll keep that in mind. I was thinking that way but it's just an option off the main menu that they want to start playing on a certain date. If i could count on their (business) information to be reliable and make a decision, it would be a different story, but having in the ICM script I can quickly go and change something when they change their mind again. All other scheduling is handled by admin scripts.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide