> 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()

`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="/files/FUuo95Sjoqx7rhZKnnMr" alt=""><figcaption></figcaption></figure>
