In a Branch/Switch action, the condition property is compared to multiple potential options. Each option is known as a case.
When a match is found, the logic of your conversational AI application continues down the relevant path. This action is useful when you want to handle multiple scenarios in a single decision point.
In the following example we'll add a Branch Switch action that checks what type of fruit the user has selected from a multiple choice prompt. This value is stored in a user scoped variable user.selection.
To add a Branch Else action perform the following steps: