Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kristiana-s opened this issue Aug 9, 2021 · 0 comments · Fixed by #4257
Closed

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

kristiana-s opened this issue Aug 9, 2021 · 0 comments · Fixed by #4257
Labels

Comments

@kristiana-s
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants