# How to Use the "Is In" Operator

This operator works best on pick-list and text type fields.

### Basic Usage

To get started, create a list of values you want to check for in your desired field. For example, if you want to see if the Accounts's Billing Country is in North America for an account distribution, you could set up criteria using the "Is In" operator as below:

1. Select `BillingCountry` as the Account Field
2. Select the `Is In` operator
3. Enter each country name separated by a comma

<figure><img src="https://2378295204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYXbv7c6RsZzQ00WCDTM%2Fuploads%2Fgit-blob-f581863d366fe21bc7494850b09c566fe3eff095%2Fis-in-operator-basic-usage.png?alt=media" alt=""><figcaption><p>Using the "Is In" operator to match a list of country names</p></figcaption></figure>

### **Is Not In**

This operator can also be used to be sure that a field on the account does **not** equal a set of values by adding custom logic.

For example, you might want to go a step further from the example above and make sure that accounts are in North America and the account source is **not** "Partner" or "Event."

The steps to accomplish this are as follows:

1. Select `AccountSource` in the Account Field
2. Select the `Is In` operator
3. Enter "Partner" and "Event" separated by a comma (e.g. `Partner, Event`)

<figure><img src="https://2378295204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYXbv7c6RsZzQ00WCDTM%2Fuploads%2Fgit-blob-ef37aca9ea34d26d43fd32d24d9993094274caf3%2Fis-in-operator-negation-step-3.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Add custom Logic by clicking the dropdown under "Distribution Criteria" and select "Custom Condition Logic Is Met".

<figure><img src="https://2378295204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYXbv7c6RsZzQ00WCDTM%2Fuploads%2Fgit-blob-daf4e8bd5af7c2eade1b75c058685965f0e37a70%2Fis-in-operator-negation-step-4.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Enter logic so that Condition 1 is met and Condition 2 is not met: `1 AND NOT(2)`

<figure><img src="https://2378295204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYXbv7c6RsZzQ00WCDTM%2Fuploads%2Fgit-blob-b5533edae673ae7c51883e0b497bde59ac646b5c%2Fis-in-operator-negation-step-5.png?alt=media" alt=""><figcaption></figcaption></figure>

Now you have 2 Conditions:

* **Condition 1** looks to see if the `Billing Country` is `United States, Canada, or Mexico`
* **Condition 2** looks to see if the `Account Source` is `Partner` or `Event`.

By adding custom logic, you have created criteria where `Billing Country` must be `United States, Canada, or Mexico` **AND** `Account Source` must **NOT** be either `Partner` or `Event`*.*
