> 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()

`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="/files/M3zwyop0z2heiAdcWPSE" alt=""><figcaption></figcaption></figure>
