Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Logical operator '||' seen as modifier in some cases #4099

@kristiana-s

Description

@kristiana-s

Bug Description

The logical operator || is seen as |'modifier' not as an 'or' though only in some cases.
In this case{{if is_small_article || collection:handle == 'vacancies'}} and error was returned. Modifier [] not found
But for two variables {{if feature_text || feature_quote}} it works without issue.

Environment

Statamic version: 3.1.32

PHP version: 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions