Branching out to another script

Answered Question
Nov 16th, 2007

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.

I have this problem too.
0 votes
Correct Answer by Chris Deren about 9 years 2 weeks ago

Use the "subflow" step.

Chris

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
Loading.
Ruud van Strijp Mon, 11/19/2007 - 02:10

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.

Actions

This Discussion