> 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/instruction/instruction.get_components.md).

# Instruction.get\_components()

Returns the instruction's components.

`get_components() →` [`APIList`](/glider-ide/api/iterables/apilist.md)`[`[`Value`](/glider-ide/api/value.md) `|` [`NoneObject`](/glider-ide/api/internal/noneobject.md)`]`

## Query Example

```python
from glider import *

def query():
    instructions = Instructions().exec(1,10)
    for inst in instructions:
        for component in inst.get_components():
            print(component.expression)

    return instructions
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FNuVDwbQBVFdt3WzkqmiN%2Fimage.png?alt=media&amp;token=a0baf322-d90f-42dd-a9c5-4c617b240f72" alt=""><figcaption></figcaption></figure>
