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

# ValueExpression.get\_components()

Returns the value expression's components

`get_components(self) -> APIList[Union[`[`Value`](/glider-ide/api/value/value.md)`,` [`NoneObject`](/glider-ide/api/internal/noneobject.md)`]]`

## Query Example

```python
from glider import *


def query():
    instructions = (
        Instructions()
        .exec(1, 6)
    )
    for instruction in instructions:
        main_value = instruction.get_value()

        if isinstance(main_value, ValueExpression):
          for component in main_value.get_components():
              print(component)
              print(component.expression)
              
    return instructions
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FHIcSDKJZqCOdh02qmzdc%2FScreenshot%202025-09-08%20at%201.49.30%E2%80%AFPM.png?alt=media&amp;token=08487ec6-d46f-416e-80e1-b2fa22fd58bb" alt=""><figcaption></figcaption></figure>
