Length of string in Jinja/Flask March 5, 2023 by Tarik You can use the length filter: {% if some_var|length > 1 %}