# Variable.getAttribute

## Description

Retrieves value from an attribute of an object variable in the application's local variable pool.

## Input / Parameter

| Name         | Description                                                                               | Input Type | Default | Options | Required |
| ------------ | ----------------------------------------------------------------------------------------- | ---------- | ------- | ------- | -------- |
| name         | The variable's identifier containing the object.                                          | Text       | -       | -       | Yes      |
| attribute    | The attribute name of the object variable to retrieve value from.                         | Text       | -       | -       | Yes      |
| defaultValue | The default value to be used if the attribute does not exist or does not contain a value. | Any        | -       | -       | No       |

## Output

| Description                                                                                                                                       | Output Type |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| The stored variable's value from the attribute, or null if the value does not exist, variable is not an object and default value is not supplied. | Any         |

## Callback

N/A

## Video

Coming Soon.

## Example

Coming Soon.

### Steps

Coming Soon.

### Result

Coming Soon.

## Links


---

# 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://docs.emobiq.com/emobiq-server/005-function/variable/variable.getattribute.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.
