{# input: list #} {% set singleList=(list|length<=maxItemsForFlatList) or (list|length>maxItemsForMultiPageList) %} {% if singleList %} {% endif %}