Learn

empty

Determine if a given variable is empty.

Determine if a given variable is empty. Works with either simple single-value variables or lists.

Sample Usage

{{ if people|empty }}
    There are no people here.
{{ endif }}

This will display a string if the people variable is empty.

Parameters

This modifier has no parameters.

This article was last updated on March 30th, 2016. Find an error? Please let us know!