# StatePoint.get\_variable()

`get_variable() →` [`StateVariable`](https://glide.gitbook.io/main/glider-ide/api/variables/statevariables/statevariable)

## 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&#x26;token=f7016fd8-db40-4db1-9d51-68e1ea31702e" alt=""><figcaption></figcaption></figure>
