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

# default

### Introduction

The `default` filter is used to provide a fallback value when a variable is `null`, empty, or undefined. This is useful to ensure there is always a value displayed, even if the original variable is not set.

### Example of Use

Example of how to use the `default` filter to define a fallback value when the `first_name` variable is not set or is empty:

```twig theme={null}
{{ first_name|default('Name not defined') }}
```

### Output Example of the Code

<img src="https://mintcdn.com/reportana/9HogJxt6BTsd31jh/default-en.png?fit=max&auto=format&n=9HogJxt6BTsd31jh&q=85&s=471d45f1b971609e152cd9208b28b69c" alt="Result of the `default` Filter" width="225" height="79" data-path="default-en.png" />
