The Switch Step

Configure the False output branch of the If step by dragging a Switch step from the General palette to the Design pane, and dropping it over the False icon under the If step.

Then configure the Switch step to evaluate the value of the language variable (as retrieved by the previous Get Contact Info step) and to switch the language context of the call accordingly.

Figure shows the configured Switch customizer window.

Configured Switch Customizer Window
Configure the Switch customizer window as follows:
  • Switch Value—language

    The variable that stores the current language of the call.

  • Case(s)—L[en], L[fr_CA]

    The language options available for the call.

The Switch step has three output branches, based on the language variable as specified in the Switch Expression text field: L[en], L[fr_CA], and Default.

The following sections describe the three output branches of the Switch step:

The L[en] Output Branch

If the Switch step determines that English is the language context of the call, the script executes the L[en] output branch and the script uses English in subsequent steps.

The L[fr_CA] Output Branch

If the Switch step determines that Canadian French is the language context of the call, the script executes the L[fr_CA] output branch, and the script uses Canadian French in subsequent steps.

The Default Output Branch

If the Switch step determines that Dial By Name is not supported for this call, the script executes the Default output branch.

Configure the Default output branch of the Switch step to use the Goto step to send the caller to the DialByExtn Label step under the Simple Recognition step. (See The Get Digit String Step.)