# index\_of

Source: https://zotonic.com/docs/1940/index_of

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

Language: en



Returns the index of the first occurrence of the item in the given list.

For example:

```django
{{ [44,11,2,443,2]|index_of:11 }}
```

Returns `2`.

::: {.note title="Note"}
Erlang list indices are always 1-based.
:::

License: 

Attribution: 

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