The If Step
Continue the Successful output branch of the Name To User step by dragging an If step from the General palette to the Design pane, and dropping it over the Get User Info step icon under the Name To User step icon, as shown in figure Name To User—Successful Output Branch Scripting.
Then configure the If step to create a prompt based on whether or not a recording of the spoken name of the person whose extension is being called is available.
The If step evaluates the Boolean expression spokenName==null; or, the value of the Document variable spokenName is equal to null.
The If step has two output branches: True and False. See, figure Name To User—Successful Output Branch Scripting
The following sections describe the two output branches of the If step:
The True Output Branch— If the If step determines that a recording of the spoken name of the person whose extension is being called is not available, the script executes the True output branch. Configure the True output branch of the If step to instruct prompt to play the system prompt SP[AA/AACalling], which does not speak the name of the person being called.
The False Output Branch—If the If step determines that a recording of the spoken name of the person whose extension is being called is available, the script executes the False output branch. Configure the False output branch of the If step to instruct prompt to play the system prompt SP[AA/AACallingName], which is then followed by the spoken name.