11-16-2007 11:10 AM - edited 03-14-2019 01:32 AM
How do you call a script from a CRS script? I am trying to give the caller option to "branch out" to another prompt (script) in case they made a mistake calling this prompt. Please advise, thanks.
Solved! Go to Solution.
11-17-2007 08:38 AM
11-17-2007 08:38 AM
Use the "subflow" step.
Chris
11-19-2007 02:10 AM
And don't forget to map variables. By doing this you say that variable X in the subflow script, will be the value of variable Y in your main script. And it can also work the other way around.
For example, we have added a variable to our script that defines the opening and closing time of the CSQ. Since we have bad experiences with the Time-variable, we use a string variable "8:00" as opening time. We call a subflow to have these variables split to 8 hours 00 minutes. So we've mapped the "8:00" string variable to a String var in the subflow script. Then the subflow script splits the String, calculates each hour and minute seperately and then makes the boolean 'isOpened' true or false. This boolean is then mapped to a boolean variable in the main script.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: