The Key 2 Output Branch

If the caller decides to re-record a name, the script executes the Key 2 output branch.

Configure the Key 2 output branch of the Menu step to provide the caller with more opportunities to record a name.

Figure shows the scripting under the Key 2 output branch of the Menu step.

Menu Step—Key 2 Branch

As in previous sections of the script, use an If step to give the caller multiple chances to record a name, until the script reaches the maximum number of retries. (For examples of the use of the If step, see The Timeout Output Branch and The Unsuccessful Output Branch.)

In this case, the If step evaluates the expression “triesRecord < triesMaxRecord”; or the value of the triesRecord variable is less than the triesMaxRecord variable.

The triesRecord variable is an Integer variable that has an initial value of 0. The triesMaxRecord variable is an Integer variable with a value of 3.