> 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/statevariables/statevariables.with_all_properties.md).

# StateVariables.with\_all\_properties()

Adds a filter to get state variables that have all given properties

`with_all_properties(properties: List[`[`StateVariableProp`](/glider-ide/api/variables/statevariables/statevariableprop.md)`]) →` [`StateVariables`](/glider-ide/api/variables/statevariables/statevariables.md)

## Query Example

```python
from glider import *


def query():
  state_variables = (
    StateVariables()
    .with_all_properties([StateVariableProp.CONSTANT, StateVariableProp.PUBLIC])
    .exec(10)
  )

  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%2FJFi1r1sADNxRTPi8F675%2Fimage.png?alt=media&amp;token=a217c4f3-279f-4223-b87f-4551a4a70e42" alt=""><figcaption></figcaption></figure>
