> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/point/varvalue/varvalue.get_object_of_var.md).

# VarValue.get\_object\_of\_var()

Returns corresponding object of the variable.

`get_object_of_var() →` [`LocalVariable`](/glider-ide/api/variables/localvariables/localvariable.md) `|` [`StateVariable`](/glider-ide/api/variables/statevariables/statevariable.md) `|` [`ArgumentVariable`](/glider-ide/api/variables/argumentvariable.md) `|` [`GlobalVariable`](/glider-ide/api/variables/globalvariables.md) `|` [`NoneObject`](/glider-ide/api/internal/noneobject.md)

## Query Example

```python
from glider import *


def query():
  instructions = Instructions().exec(1, 2)

  for instruction in instructions:
    components = instruction.get_components()
    for component in components:
      if isinstance(component, VarValue):
        var_object = component.get_object_of_var()
        print(var_object)
        print(var_object.source_code())

  return instructions
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fz1frDJgeFyZYZsqdpYnG%2Fimage.png?alt=media&amp;token=1b93474d-56b1-4169-b766-07a1933e2a8c" alt=""><figcaption></figcaption></figure>
