summaryrefslogtreecommitdiff
path: root/docs/designers/language-modifiers/language-modifier-empty.md
blob: 2d1043fbdbae3f924213f2c766fa482e4e106709 (plain)
1
2
3
4
5
6
7
8
9
10
# empty

Returns true if var does not exist or has a value that is empty or equal to zero, aka falsey, see conversion to boolean. Otherwise returns false.

## Basic usage

```smarty
{if $myVar|empty}it's an empty variable{/if}
{if empty($myVar)}it's an empty variable{/if}
```