> For the complete documentation index, see [llms.txt](https://docs.locoia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.locoia.com/connectors/helpers/multi-case-helper.md).

# Multi Case Helper

Route the Flow path based on the value of a variable

<figure><img src="https://291121471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McrRFZHYH27bqKzOVDd%2Fuploads%2F1j314bqLKVXibmE6weel%2Fimage.png?alt=media&amp;token=2b97f656-aad8-4bdf-9510-f8ef98fc8aa7" alt="" width="215"><figcaption></figcaption></figure>

## Overview

With the Multi Case Helper, you can route the Flow path based on the specific value of some field, variable, etc.

## Actions

The **Multi Case Helper** has only one default action - **Select case decision**.

The label of the corresponding arrow needs to match the test case value so that its Flow path is taken. You can add as many arrows as you like.

## Example

Let's imagine a Flow that takes data from a form and based on a select field in the form should either create a payment in Stripe, create a new deal in a CRM such as HubSpot, or create a new ticket in a system such as Zendesk.

The Multi Case Helper in that case takes the field as the test case value:&#x20;

<figure><img src="https://291121471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McrRFZHYH27bqKzOVDd%2Fuploads%2FHaL2TszrG0AvezvRNJxA%2Fimage.png?alt=media&amp;token=d917f0ee-124b-468a-be09-4db1c2cf04c2" alt="" width="563"><figcaption></figcaption></figure>

Based on that value of `{{ inquiry_type }}` it will follow one of the three arrows to the next step of the Flow:

![Flow paths after Multi Case Helper](https://291121471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McrRFZHYH27bqKzOVDd%2Fuploads%2Fajj4rr2KbQqhWvqMVbit%2Fimage.png?alt=media\&token=4dea21e5-1e9a-46bc-aeac-a306330007d3)

## Defaulting to a Case

Q: Is there a **standard (default)** action possible with the Multi Case Helper?

A: It is possible to add in the Multi Case Helper e.g.:

```django
{% if reference == ‘value1‘ or reference == ‘value2‘ or .. %}
{{ reference }}
{% else %}
default
{% endif %}
```

Then three arrows need to be created with the following names:

* value1
* value2
* default

Thus, the flow route defaults to `default` whenever none of the other arrows match.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.locoia.com/connectors/helpers/multi-case-helper.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
