# to\_boolean

Source: https://zotonic.com/docs/2497/to_boolean

URI: https://zotonic.com/id/2497

Language: en



Convert the input to a boolean value.

Example:

```django
{{ "123"|to_boolean }}
```

Results in the boolean value `true`.

This filter uses the `z_convert:to_bool/1` function.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2497?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2497?language=en>)
