Learn

not_empty

Determine if a given variable is not empty.

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

Sample Usage

{{ if people|not_empty }}
    This party is raging.
{{ endif }}

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

Parameters

This modifier has no parameters.

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