> 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.is_private.md).

# StateVariable.is\_private()

Returns true if the visibility of the state variable is private, otherwise returns false.

`is_private() → bool`

## Query Example&#x20;

```python
from glider import *


def query():
  state_variables = (
    StateVariables()
    .exec(20)
    .filter(lambda state_variable: state_variable.is_private())
  )

  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%2FzgxggMUhZSg67V0Da1Kb%2Fimage.png?alt=media&amp;token=6cb69bbb-76a6-41f9-8154-96e0b045a4d6" alt=""><figcaption></figcaption></figure>
