# before

Source: https://zotonic.com/docs/1937/before

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

Language: en



Return the first element before another element in a list. For example:

```django
{{ [1,2,3]|before:2 }}
```

Evaluates to the value `1`.

When the element is not part of the list, or is the first element in the list, the returned value is `undefined`.

License: 

Attribution: 

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