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

# ValueExpression.get\_component()

Returns the value expression's i-th component

`get_component(i: int) -> 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()
        .new_variable_instructions()
        .exec(1,1)
    )
    for instruction in instructions:
        print(instruction.get_value().get_component(0))
        print(instruction.get_value().get_component(0).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%2FuXMBwvxvbtplDZvbUdsW%2Fimage.png?alt=media&amp;token=d0e5876d-0cf5-41b6-bac4-2695e247bead" alt=""><figcaption></figcaption></figure>
