# StateVariable.is\_public()

`is_public() → bool`

## Query Example

```python
from glider import *


def query():
  state_variables = (
    StateVariables()
    .exec(30)
    .filter(lambda state_variable: state_variable.is_public())
  )

  print(state_variables[0].source_code())

  return state_variables
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FHbiIf7cznU4HIInK3Qf6%2Fimage.png?alt=media&#x26;token=bb28c0bf-91b6-42c0-ba28-d39ec6463f21" alt=""><figcaption></figcaption></figure>
