# Boolean Operators

Boolean operators AND, OR, NOT can be applied to searches. Boolean operators must be capitalised, otherwise they are parsed as search terms not as Boolean operators. The symbols &&, ||, !! can also be used instead of the words AND, OR, NOT (please note the symbols must be preceded and followed by a space)

<table data-full-width="false"><thead><tr><th>Boolean Operator</th><th>Application</th></tr></thead><tbody><tr><td>AND (also &#x26;&#x26; )</td><td><p>Search for documents containing two or more terms. Each returned search result must contain all of the searched for terms.</p><p> </p><p>For example the following queries return search results containing both cat and dog.</p><p>·         cat AND dog</p><p>·         cat &#x26;&#x26; dog</p></td></tr><tr><td>OR (also || )</td><td><p>Search for documents containing at least one of two or more searched terms.</p><p> </p><p>For example the following queries return documents containing only the term cat, documents containing only the term dog, and documents containing both cat and dog.</p><p>·         cat OR dog</p><p>·         cat || dog</p></td></tr><tr><td>NOT (also !! )</td><td><p>Search for documents that do not contain a given term.</p><p> </p><p>For example the following queries return documents containing cat but not containing dog;</p><p>·         cat NOT dog</p><p>·         cat !! dog</p></td></tr></tbody></table>

{% hint style="info" %}
**Note**: For guidance on using parentheses `( )` with Boolean operators to structure complex searches, see <https://help.cabi.org/cabi-digital-library-help/search/using-boolean-operators-and-parentheses-in-advanced-search>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.cabi.org/cabi-digital-library-help/search/boolean-operators.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
