-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
simple OR/AND condition does not work #3685
Comments
Have you tried adding parenthesis? (https://statamic.dev/antlers#modifiers-inside-conditions) |
@JonKaric has the answer right there — you need to group those sets of vars+modifiers with parenthesis and you should be good to go. Feel free to reopen if that doesn't do it! |
I tried many variations, .. nothing helps. |
I tried many variations, before I posted. Not every are posted here, but I tried to be descriptive to replicate issue. These combinations does not work:
|
@lostika86 Could you try this...
|
|
Just FYI, Antlers doesn't support nested parenthesis. |
Nesting parenthesis was only a try, ... but good to know. Thank you |
Bug Description
There is a real need of checking more than one variable in conditions.
example: when we use multisite, and we check entry id, we have to check localized and origin id.
How to Reproduce
{{ category | raw | dump }}
Extra Detail
dump is:
(looks like) same (old) issues: #2655, #3624
Environment
Statamic 3.1.11 Pro
Laravel 8.40.0
PHP 7.3.12
doublethreedigital/duplicator 1.3.1
Install method (choose one):
statamic/statamic
The text was updated successfully, but these errors were encountered: