The True Output Branch

If the maximum number of retries has not been reached, the script executes the True output branch.

Configure the True output branch of the If step to provide the caller with more opportunities to be authenticated.

The following steps execute under the True output branch of the If step, as shown in Figure 7-21:

  • The Play Prompt step—Plays the system prompt, SP[SNU\error_auth.wav], which informs the caller that the authentication failed, followed by a silence of 500 milliseconds.

  • The Set step—Adds 1 to the value of triesAuthentication. After three attempts, the value of triesAuthentication is 3, which is equal to the value of triesMaxAuthentication, so the False output branch of this If step executes.

  • Goto—Sends the script to the Label named Get User above the Name to User step, as shown in Figure 7-17,, in order to give the caller another chance to enter a name. (SeeThe Label Step (GetUser).)