The True Output Branch
If the first If step determines that the caller has not entered PIN information, the script executes the True output branch.
Configure the True output branch of the first If step to give the caller more opportunities to enter PIN information, until the maximum number of retries limit is reached.
Use a second If step, placed under the True output branch of the first If step, to evaluate the expression “triesGetDigit < triesMaxGetDigit”; or, the value of triesGetDigit is less than triesMaxGetDigit.
The triesGetDigit variable is an Integer variable that has an initial value of 0. The triesMaxGetDigit variable is an Integer variable with a value of 3.
The following steps execute under the True output branch:
-
The Set step—Adds 1 to the value of triesGetDigit.
Configure the Set customizer window by first choosing the triesGetDigit variable from the Variable drop-down menu. Then in the Assign text field, you enter the expression triesGetDigit + 1.
This means that each time the script reaches this Set step, the value of the triesGetDigit variable is increased by 1. After three attempts, the value of triesGetDigit is 3, which is equal to the value of triesMaxGetDigit, so the False output branch of this If step executes.
-
The Play Prompt step—Plays the system prompt, SP[SNU\still_there.wav], which asks if the caller is still connected, followed by a silence of 500 milliseconds.
-
The Goto step—Sends the script to the Label named GetPin, above the Get Digit String step, in order to give the caller more attempts at entering a PIN number. (SeeThe Label Step (GetPin).)