![](/s/cache/3c/37/3c37e2d36460cfa0a7df7f2eae34d80b.png)
0
Answered
"OR" statement in block query rules
I’m wondering if it would be possible to create a block that uses an “or” statement in it’s query rules.
For example:
Section = galveston
or
Geolocation = galveston
I’d like to be able to see assets that have either one of those properties returned in the results.
Thanks.
For example:
Section = galveston
or
Geolocation = galveston
I’d like to be able to see assets that have either one of those properties returned in the results.
Thanks.
Answer
![](/s/cache/86/78/8678fccc68c8a12d52a4416eb9ef3a5d.png)
Answer
Answered
Hi Kevin!
You can only do an "or" query within a specific rule. So, you can do section = news "or" sports, by creating one query rule with each of those items selected.
You can do an "and" query by selecting section = news AND (a separate rule) section = sports.
But, you can't currently do "or" queries for two different rule types.
We do have a feature request in for this already, but it is not currently roadmapped. It would require a large architectural change to implement. It could be something we look at more in the future, however.
You can only do an "or" query within a specific rule. So, you can do section = news "or" sports, by creating one query rule with each of those items selected.
You can do an "and" query by selecting section = news AND (a separate rule) section = sports.
But, you can't currently do "or" queries for two different rule types.
We do have a feature request in for this already, but it is not currently roadmapped. It would require a large architectural change to implement. It could be something we look at more in the future, however.
![](/s/cache/3c/37/3c37e2d36460cfa0a7df7f2eae34d80b.png)
That's what I assumed. Thanks for confirming and letting me know it is already on the request list.
Customer support service by UserEcho
You can only do an "or" query within a specific rule. So, you can do section = news "or" sports, by creating one query rule with each of those items selected.
You can do an "and" query by selecting section = news AND (a separate rule) section = sports.
But, you can't currently do "or" queries for two different rule types.
We do have a feature request in for this already, but it is not currently roadmapped. It would require a large architectural change to implement. It could be something we look at more in the future, however.