Skip to content

Using Jinja2 condition against a string #85

@xcke

Description

@xcke

Hi All,

Maybe a user error, but if I use a jinja2 if condition something like:

{% if site_csv.Rack_Type =='RACK1' %}
bla bla
{% endif %}

I receive error during running:
jinja2.exceptions.TemplateSyntaxError: unexpected char '”' at 101224

Same setup with an integer seems to be working. I tried different chars like ",',` none of them working to identify string.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions