Skip to content

Using "and" or "or" as boolean operators in templates does not work #875

@matt-in-a-hat

Description

@matt-in-a-hat

Pages affected

Description

Boolean logic
Multiple checks can be done using ||/or, or &&/ and.
or is functionally equivalent to || in template conditions, and and is functionally equivalent to &&.

Unsure if this is an issue with templates, or if the documentation just tries to sell something which doesn't exist, but at least in 5.4 if I try to use "and" or "or" in a template's logic then at best I get "Unexpected problem parsing template", or at worst it quietly fails to render any of the rest of the partial template after that point.

Validations

  • Check that there isn't already an issue that reports the same problem

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions