# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.clickatell.com/flow/action-nodes/action-nodes-switch-case.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
