--- title: "Boolean operators" slug: "boolean-operators-3" tags: ["EDR with Forensics (EDRF)", "Endpoint Security"] updated: 2026-08-26T19:31:23Z published: 2026-08-26T19:31:23Z canonical: "docs.trellix.com/boolean-operators-3" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Boolean operators Boolean operators include AND, OR, and NOT. By default, a space between query terms is considered an implicit “and”, and the search is inclusive of all terms specified. The order of precedence for AND, OR, and NOT is: 1. NOT, which binds to what immediately follows it 2. AND (explicit) 3. AND (implicit, or no AND is entered, but a space exists between two terms) 4. OR The valid symbols for AND are: - AND - and - && - (single empty space) The valid symbols for OR are: - OR - or - || (double bars) For example: ``` (network.srcIp="192.168.1.1" OR network.srcIp="192.168.1.4") and network.dstIp="192.26.65.230" ``` ``` network.srcIp="192.168.1.1" OR network.srcIp="192.168.1.1" ``` The operator NOT binds to what is immediately after it. For example: ``` not eventType=api ``` The valid symbols for NOT are: - NOT - Not - ! (exclamation point with no space before next search term) > [!NOTE] > Note > > The exclamation point (`!`) can only be used as a prefix for the colon (`:`) and equal (`=`) operators.