The If Step
Because you cannot know in advance whether a recording of the spoken name of any particular caller exists at the time of any particular call, use the If step to provide script logic for each of the two possibilities: that a recording of the spoken name exists, and that a recording of the spoken name does not exist.
Continue building the Successful output branch of the Name To User step by dragging an If step from the General palette and dropping it into the Successful icon under the Name To User step in the Design pane.
Configure the If step to evaluate the value of the currentRecording variable (supplied by the previous Get User Info step).
Figure shows the configured If customizer window.

Note | For more information about configuring the If step, see the Cisco Unified Contact Center Express Scripting and Development Series: Volume 2, Editor Step Reference Guide. |
The If step evaluates the Boolean expression “currentRecording!= null”, which means that the currentRecording variable is not null.
-
If the Boolean expression “currentRecording!= null” is true, the name of the caller is available for use by the Get Digit String step. In this case, the True output branch of the If step executes.
-
If the Boolean expression “currentRecording!= null” is false, the name of the caller is not available for use by the Get Digit String step. In this case, the False output branch of the If step executes.