> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/english/skyone-studio/integrations/flows/data-operations/object-handling/practical-example-handling-variables.md).

# Practical example: Handling variables

### Contex&#x74;**:** <a href="#context" id="context"></a>

Let's imagine a flow where the objective is to receive a list of guests and validate that the guest and their possible companion are authorized to enter the party.

Entry data:

```json
[
  {
    "nome": "João",
    "idade": 24,
    "cep": "00000-000",
    "subConvidado": {
      "nome": "Júlia",
      "idade": 34,
      "cep": "22222-222"
    }
  },
  {
    "nome": "Pedro",
    "idade": 57,
    "cep": "11111-111"
  }
]
```

Business rule:

The flow will hit a REST CLIENT passing the name and age information for data validation. If there are companions, it will fall into a branch of the flow.

<figure><img src="/files/mXstVp92JlxXXHmcjBiJ" alt=""><figcaption></figcaption></figure>

From this point on, let's assume that the *element* is the following object

```json
{
  "nome": "João",
  "idade": 24,
  "cep": "00000-000",
  "subConvidado": {
    "nome": "Júlia",
    "idade": 34,
    "cep": "22222-222"
  }
}
```

Within the Festa.io module, we'll configure it as follows:

<figure><img src="/files/mC4EujWJUUqNYtbU44XM" alt=""><figcaption></figcaption></figure>

Where "nome" and "idade" are operation parameters and we will fill in this information via the element parameter by specifying the "Path" within each operation parameter.

Using the IF module, we will check for the existence of a companion for the guest.

<figure><img src="/files/hW83Ff5r8Eb3ZUcs1krw" alt=""><figcaption></figcaption></figure>

We can see that variable 1, from the first condition, also refers to the element parameter, but now the property we are interested in is called "subConvidado". Knowing this, we define the path as shown in the image:

<figure><img src="/files/wylwedzvzZAtSRFCnyMN" alt=""><figcaption></figcaption></figure>

At this point, we have already configured the validation of user information for the Festa.io module and we have also validated the existence of a companion for different approaches within the same flow.

The other modules not detailed in the example follow the structure and logic of those already detailed in this article.

***


---

# 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 dynamically by asking a question.

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

```
GET https://docs.skyone.cloud/english/skyone-studio/integrations/flows/data-operations/object-handling/practical-example-handling-variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
