> 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_parent.md).

# VarValue.get\_parent()

Returns parent function/modifier of the variable.

`get_parent() →` [`Callable`](/glider-ide/api/callable.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):
        parent = component.get_parent()
        print(parent)
        
  return instructions
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Filo94h7Vh81EBqkeVggX%2Fimage.png?alt=media&amp;token=3ffb718e-a5ba-4959-b3c1-1c5732839533" alt=""><figcaption></figcaption></figure>
