> 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/statepoint/statepoint.get_variable.md).

# StatePoint.get\_variable()

Method that returns object of variable

`get_variable() →` [`StateVariable`](/glider-ide/api/variables/statevariables/statevariable.md)

## Query Example

```python
from glider import *


def query():
    instructions = (
        Functions()
        .with_name("latestRoundData")
        .exec(1)
        .instructions()
        .exec()
    )

    for instruction in instructions:
      for df in instruction.get_components():
        if isinstance(df, VarValue):
          for state_point in df.get_defining_points():
            print(state_point.get_variable())
 

    return instructions
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FceECX0zw5Jf3jyJuG7Iz%2FScreenshot%202025-09-10%20at%201.55.48%E2%80%AFPM.png?alt=media&amp;token=f7016fd8-db40-4db1-9d51-68e1ea31702e" alt=""><figcaption></figcaption></figure>
