{{ profile }}値が「test」で、値が「test」の2 つの変数があると{{ element.author }}します。jinja2 で if を使って比較しようとすると、何も表示されません。私は次のように比較します。
{% if profile == element.author %}
{{ profile }} and {{ element.author }} are same
{% else %}
{{ profile }} and {{ element.author }} are **not** same
{% endif %}
出力が得られますtest and test are not sameWhats wrong, どうすれば比較できますか?