A “Switch Panel” is used to evaluate an interaction variable and enable different output paths or execution based on the comparison result. It is commonly used to make decisions based on user input or other dynamic factors.
The switch panel offers versatile functionality, acting as a decision-making tool within your system. For instance, when combined with a Play Message panel, it can route calls based on the caller’s DTMF input.
Configuration
The Switch Panel is configured using three main parameters:
Set as Flow Initiator: By selecting "Set as Flow Initiator," this panel will serve as the starting point of the IVR flow, before proceeding to subsequent panels within the Logic+ flow.
Panel Name: It is recommended that you choose a name and keep it consistent. You will also need to specify the variable name to update. If the variable does not exist, it will be created.
Panel Description: It is recommended to provide a clear description of the panel, detailing its purpose and functionality. This is akin to documentation, making it easier for others to understand and identify its intended use when they encounter it.
Value: A string value that represents the variable to compare. This could be any variable in the program, such as user input or a calculated value.
Name: The name of the comparison.
Value to Evaluate: This parameter defines the value(s) to compare the current variable value against. Multiple values can be specified, separated by commas. The comparison can be a string or numerical value.
Operator: The operator is used when comparing the current variable against all specified comparison values. Common operators include equals, greater than, less than, greater than or equal to, less than or equal to, and not equal to.
Exit Paths
The Switch Panel has one default exit path:
Default: If none of the matches evaluates to true for the provided variable, the default exit path is used.
Custom Added Matches: Any exit paths created for added matches that evaluate to true.