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

# StateVariable.is\_immutable()

Returns true if the state variable is immutable, otherwise returns false.

`is_immutable() → bool`

## Query Example

```python
from glider import *


def query():
  state_variables = (
    StateVariables()
    .exec(175)
    .filter(lambda state_variable: state_variable.is_immutable())
  )

  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%2F6XgaLAK14TDUjzMiuMGF%2Fimage.png?alt=media&amp;token=0d8b212f-e8b9-4b4e-89e5-01fcb2a3dd48" alt=""><figcaption></figcaption></figure>
