# 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](https://guides.clickatell.com/flow/user-facing-nodes/branch-logic-split/menu-nodes-menu-with-options), 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="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/BfGPMJMImZhhtcQXc8lH/image.png" alt=""><figcaption><p>Setup of a Switch Case node</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/joAgInTNsBfDdfx1I23z/blobs/sDVhuGLrNUPqmKubosam/image.png" alt="" width="542"><figcaption><p>Example flow containing Switch Case node</p></figcaption></figure>
