How Branches Work in Scripts

This topic explains adding branches to scripts.

Scripts use branching logic for guiding agents to specific pages based on conditions you specify. For example, you could design a script to branch to a certain page if the Organization Name field is set to a specific value. You can also create branches that are triggered when different responses are selected from question controls, such as the Radio Question or Menu Question controls, or from the Next, Exit, and Finish buttons on the navigation panel.

Branches can be created using different methods and simple or complex logic, depending on your needs. After you create branches, you can easily edit, reorder, and delete them using the tools available on the ribbon.

You can create branches quickly by right-clicking fields and controls on the design space. You can also define more complex branches using the Add Branch window. The options on the window are similar to those used to add workspace or script rules.

Tip: While you can create branches from most of the controls and fields available for scripts, question controls are ideal for branching, allowing you to quickly branch to other pages using agents’ responses to the questions you add to the script.