> 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/variables/statevariables/statevariable/statevariable.source_code.md).

# StateVariable.source\_code()

`source_code() → str`

## Query Example

```python
from glider import *


def query():
  state_variables = (
    StateVariables()
    .exec(5)
  )

  for state_var in state_variables:
    print(state_var.source_code())

  return state_variables
```

## Example Output

<figure><img src="/files/keH8EW83g4XqxEpBlSi5" alt=""><figcaption></figcaption></figure>
