# default

Source: https://zotonic.com/docs/1967/default

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

Language: en



Provide an alternative value in case a value has a falsy value (0, `false`, `undefined` or empty string).

For example:

```django
{{ value|default:1 }}
```

This filter is built-in in the template compiler and inlined when compiling templates.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1967?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/1967?language=en>)
