# Função de atributo

A função

**attribute** pode ser usada para acessar um atributo "dinâmico" de uma variável:

\
{{ attribute(object, method) }}

\
{{ attribute(object, method, arguments) }}

\
{{ attribute(array, item) }}&#x20;

&#x20;Além disso, o teste

**defined** pode verificar a existência de um atributo dinâmico:

\
{{ attribute(object, method) is defined ? 'Method exists' : 'Method does not exist'

\
}}

&#x20;Ficou com alguma dúvida? Entre em contato através do nosso chat online.


---

# 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://ajuda.iset.com.br/inicio/minha-loja/personalizacao/personalizacao-avancada-cms/funcao-de-atributo.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.
