---
title: Operators
slug: operators
docTags: 
createdAt: 2023-03-22T08:01:33.000Z
---

**Each operator can also be prefixed by&#x20;**<font color="#9900ef">`not`</font>, which denotes its negation, e.g. <font color="#9900ef">`not =`</font>, <font color="#9900ef">`not smaller than`</font>, etc.

***

## Equality

**The RHS can be either a field or a value.**

| **Symbol**                                                             | **Example**                                                                                                                                |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| <font color="#9900ef">`=`</font>, <font color="#9900ef">`equal`</font> | **\[**<font color="#fcb900">**First Name**</font>**]&#x20;**<font color="#9900ef">**equal**</font> <font color="#3b9f0f">**"John"**</font> |

***

## Comparison

**The RHS can be either a field or a value.**

| **Symbol**                                                                              | **Example**                                                                                                                         |
| --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| <font color="#9900ef">`smaller than`</font>, <font color="#9900ef">`<`</font>           | ****<font color="#fcb900">**Likely**</font> <font color="#9900ef">**&lt;**</font> <font color="#3b9f0f">**"USD" 5000**</font>       |
| <font color="#9900ef">`larger than`</font>, <font color="#9900ef">`>`</font>            | ****<font color="#fcb900">**Likely**</font> <font color="#9900ef">**larger than**</font> <font color="#fcb900">**Worst**</font>**** |
| <font color="#9900ef">`smaller than or equal`</font>, <font color="#9900ef">`<=`</font> | ****<font color="#fcb900">**Likely**</font> <font color="#9900ef">**&lt;=**</font> <font color="#3b9f0f">**"EUR" 5000**</font>      |
| <font color="#9900ef">`larger than or equal`</font>, <font color="#9900ef">`>=`</font>  | ****<font color="#fcb900">**Likely**</font> <font color="#9900ef">**&gt;=**</font> <font color="#fcb900">**Best**</font>****        |

### Between

The <font color="#9900ef">`between`</font> operator **expects two arguments on the&#x20;**[RHS](docId\:zBJ6ATBBc9_S7nLSnWcHh). The arguments can be separated by either a comma **`,`** or semicolon **`;`**. Either, or both, of the RHS arguments can be fields.

<font color="#fcb900">`X`</font> <font color="#9900ef">`between`</font> <font color="#fcb900">`Y`</font>**,** <font color="#fcb900">`Z`</font> is equivalent to <font color="#fcb900">`X`</font> <font color="#9900ef">`>=`</font> <font color="#fcb900">`Y`</font> <font color="#9900ef">`and`</font> <font color="#fcb900">`X`</font> <font color="#9900ef">`<=`</font> <font color="#fcb900">`Z`</font>.&#x20;

:::BlockQuote
****<font color="#fcb900">**Likely**</font> <font color="#9900ef">**between**</font> <font color="#3b9f0f">**"USD" 5000**</font>**;&#x20;**<font color="#3b9f0f">**"EUR" 5000**

</font>****<font color="#fcb900">**Likely**</font> <font color="#9900ef">**between**</font> <font color="#fcb900">**Worst**</font>**,&#x20;**<font color="#fcb900">**Best**</font>
:::

***

## Membership

### In

The <font color="#9900ef">`in`</font> operator expects **one or more arguments on the RHS**. It tests whether the [LHS](docId\:zBJ6ATBBc9_S7nLSnWcHh) argument **is equal to any of the RHS arguments**. Any of the RHS arguments can be fields.

:::BlockQuote
****<font color="#fcb900">**Likely**</font> <font color="#9900ef">**in**</font> <font color="#3b9f0f">**"USD" 5000**</font>**;&#x20;**<font color="#3b9f0f">**"EUR" 5000**</font>**;&#x20;**<font color="#fcb900">**Worst**</font>**;&#x20;**<font color="#fcb900">**Best**</font>
:::

### Contains

The <font color="#9900ef">`contains`</font> operator tests whether the LHS argument contains the value on the RHS. It is **not case sensitive** (<font color="#3b9f0f">`"abc"`</font> is the same as <font color="#3b9f0f">`"ABC"`</font>, <font color="#3b9f0f">`"aBC"`</font>, <font color="#3b9f0f">`"ABc"`</font> etc.). The RHS **cannot be a field**, only a value.

:::BlockQuote
<font color="#fcb900">**Name**</font> <font color="#9900ef">**contains**</font> <font color="#3b9f0f">**"inc"**</font>
:::

***

## Text

**The RHS cannot be a field, only a value.**

| **Symbol**                                 | **Example**                                                                                                                    |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| <font color="#9900ef">`starts with`</font> | ****<font color="#fcb900">**Name**</font> <font color="#9900ef">**starts with**</font> <font color="#3b9f0f">**"John"**</font> |
| <font color="#9900ef">`ends with`</font>   | ****<font color="#fcb900">**Name**</font> <font color="#9900ef">**ends with**</font> <font color="#3b9f0f">**"Doe"**</font>    |

***

## Temporal

**The RHS can be either a field or a value.**&#x20;

<font color="#9900ef">`Between`</font> for temporal fields is equivalent to <font color="#fcb900">`X`</font> <font color="#9900ef">`on or after`</font> <font color="#fcb900">`Y`</font> <font color="#9900ef">`and`</font> <font color="#fcb900">`X`</font> <font color="#9900ef">`before or on`</font> <font color="#fcb900">`Z`</font>.

| **Symbol**                                         | **Example**                                                                                                                                                                                       |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ****<font color="#9900ef">`strictly before`</font> | **\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**strictly before**</font> <font color="#2166ae">**today**</font>                                             |
| <font color="#9900ef">`strictly after`</font>      | **\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**strictly before**</font> <font color="#2166ae">**last month**</font>                                        |
| ****<font color="#9900ef">`before or on`</font>    | **\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**strictly before**</font> <font color="#2166ae">**\@\[next monday\]**</font>                                 |
| ****<font color="#9900ef">`on or after`</font>     | **\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**strictly before**</font> <font color="#2166ae">**\@\[3 weeks ago\]**</font>                                 |
| <font color="#9900ef">`between`</font>             | **\[**<font color="#fcb900">**Date Created**</font>**]&#x20;**<font color="#9900ef">**between**</font> <font color="#2166ae">**\@\[3 weeks ago\]**</font>, <font color="#2166ae">**today**</font> |

***

## Emptiness

The <font color="#9900ef">`empty`</font> operator does not have a RHS. For example, the following query searches for all records that have an empty <font color="#fcb900">`description`</font>.

:::BlockQuote
<font color="#fcb900">**Description**</font> <font color="#9900ef">**empty**</font>
:::

It can also be used on links, in which case it means "has no linked records of that type". For example, if used in the Accounts module, the following query searches for Accounts that have no Opportunities.

:::BlockQuote
<font color="#fcb900">**Opportunity**</font> <font color="#9900ef">**empty**</font>
:::

