The Unsuccessful Output Branch
If the Authenticate User step does not successfully authenticate the user, the script executes the Unsuccessful output branch.
Configure the Unsuccessful output branch of the Authenticate User step to allow the caller to retry entering a valid PIN number until the script reaches the maximum number of retries.
Figure shows the scripting under the Unsuccessful output branch of the Authenticate User step.

As in the scripting under the Timeout output branch of the Get Digit String step (see The Timeout Output Branch, page 7-28),), use an If step to determine whether or not the script has reached the maximum number of retries.
In this case, the If step evaluates the expression “triesAuthentication < triesMaxAuthentication”; or the value of triesMaxAuthentication is less than triesMaxAuthentication.
The triesMaxAuthentication variable is an Integer variable that has an initial value of 0. ThetriesMaxAuthentication variable is an Integer variable with a value of 3.
This If step has two output branches: