> ## Documentation Index
> Fetch the complete documentation index at: https://reportana.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# In

The `in` operator is used to check if a value is present in a *list*, *string*, or *other collection type*. It returns `true` if the value on the left side of the operator is found within the collection on the right side, and `false` otherwise.

**`Example of how to use the in operator combined with if/else to verify if an item is present in a given list:`**

```twig theme={null}
{% set fruits = ['Apple', 'Banana', 'Orange'] %}

{# Checking if 'Apple' is in the fruits list #}
{% if 'Apple' in fruits %}
Apple is in the fruits list.
{% else %}
Apple is not in the fruits list.
{% endif %}
```

*In this example*, the `in` operator checks if the string "Apple" is present in the list `fruits`. Since "Apple" is in the list, the condition evaluates to true, and the message "Apple is in the fruits list." will be displayed.
