---
url: https://developer.youcan.shop/themes/tags/else.md
---
# `else`
An `else` can only exists within a condition statement, and is triggered when your preceding condition(s) where not met and you wish to default to something.
::: info
`else` can only be used with the following tags: [`if`](./if.md), [`case`](./case.md), [`unless`](./unless.md) and [`for`](./for.md#default-for-empty-arrays).
:::
```liquid
{% else %}
block_to_output
```
* `block_to_output`: Rendered expression where no previous conditions were met.
**Example**
::: details Data
```json
{
"product": {
"track_inventory": true
}
}
```
*Note: Data is only refereed as a reference for this example and is in no means reflecting real world data.*
:::
```liquid
{% if product.track_inventory == true %}
There only 15 items left. Hurry up!
{% else %}
Supply is limited. Hurry up!
{% endif %}
```
::: tip Output
There only 15 items left. Hurry up!
:::