> For the complete documentation index, see [llms.txt](https://guides.clickatell.com/flow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.clickatell.com/flow/action-nodes/action-nodes-switch-case.md).

# Switch Case

The *Switch Case* node is used to route a customer to a specific step based on a flow variable's value. It is similar to a [*Menu* node](/flow/user-facing-nodes/branch-logic-split/menu-nodes-menu-with-options.md), but instead of relying on the customer's input to decide which route to take, this node relies on the value of a certain flow variable.

**Example:**

Add a variable in your flow, e.g., *Registration\_Status*, that captures where the customer is in their registration flow. Add a *Switch Case* node and refer to this variable in the *Variable* field.

* If the value of the variable = Not\_Registered -> Send user to the *Registration* workflow.
* If the value of the variable = Registered -> Send user to the *Login* flow.
* If the value of the variable = OTP\_Pending -> Send the user to the *OTP* node.
* If the value of the variable = Blocked -> Inform user that they are blocked via a *Text Display* node.

<figure><img src="/files/Rjh2qHJ652qiuGWDRWX5" alt=""><figcaption><p>Setup of a Switch Case node</p></figcaption></figure>

<figure><img src="/files/3syszJd7xW2vK5dUFIZZ" alt="" width="542"><figcaption><p>Example flow containing Switch Case node</p></figcaption></figure>
