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

# StateVariable.is\_accessible()

Returns true if the state variable is accessible in current contract, otherwise returns false. The state variable isn't accessible in current contract if it is a private inherited state variable

`is_accessible() → bool`

## Query Example

```python
from glider import *


def query():
  state_variables = (
    StateVariables()
    .exec(5, 10)
    .filter(lambda state_variable: state_variable.is_accessible())
  )

  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%2FjQrVgPv7fzscSY1TPDwJ%2Fimage.png?alt=media&amp;token=e3554a04-ce85-4aa0-bd16-14bc15ebbae8" alt=""><figcaption></figcaption></figure>
