You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Boolean expressions - found in {% if %} and {% unless %} tags - that compare string values with <, <=, > and >= are raising a LiquidTypeError exception.
Comparing strings for equality is OK, but comparing the lexicographic order of strings is broken.
fromliquidimportTemplatet=Template("{% if x <= y %}TRUE{% else %}FALSE{% endif %}")
t.render(x="abc", y="def")
# LiquidTypeError: unknown operator: <class 'str'> < <class 'str'>, on line 1
The text was updated successfully, but these errors were encountered:
Boolean expressions - found in
{% if %}
and{% unless %}
tags - that compare string values with<
,<=
,>
and>=
are raising aLiquidTypeError
exception.Comparing strings for equality is OK, but comparing the lexicographic order of strings is broken.
The text was updated successfully, but these errors were encountered: