Skip to content

"or" statement does not work as expected in "if" tests #157

@hoh

Description

@hoh

Testing for the empty value of two Django variables fails when using the HAML syntax but works with the Django templating syntax.

This failed:

-if myobject.attr1 or myobject.attr2
    %div foobar

This worked:

{% if myobject.attr1 or myobject.attr2 %}
    %div foobar
{% endif %}

Using hamlpy==0.82.2 and Django==1.6.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions