> For the complete documentation index, see [llms.txt](https://help.delpha.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.delpha.io/delpha-for-salesforce/how-to-faq/delpha-duplicate/what-is-the-expression-and-how-to-use-it.md).

# What is the Expression and how to use it

## What is the Expression and How to Use It

Expression evaluation is the **first step** of Delpha’s duplicate detection process. An **Expression** is a formula that determines whether two records are a **100% match** based on specific fields. It can use logical **AND**, **OR**, or a **combination** of both.

> Expressions are configured using JSON-style syntax and must use fields defined in the **Fields** section.

{% hint style="success" %}
From version 3.56, we've replaced the old JSON-based interface with a [new visual rule builder to simplify and streamline duplicate rule configuration.](/delpha-for-salesforce/delpha-upgrade/whats-new/duplicate/build-3.56.md#visual-rule-builder-for-duplicate-management)
{% endhint %}

## Expression Syntax Explained

| **Expression Type**                                                         | **Example**                                                   | **What it Means**                                                                 |
| --------------------------------------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| <p><strong>AND:</strong> </p><p> <code>\[\["field1", "field2"]]</code></p>  | `[["Email", "Name"]]`                                         | Records match if **both** Email and Name are the same.                            |
| <p><strong>OR:</strong> </p><p><code>\[\["field1"], \["field2"]]</code></p> | `[["Email"], ["Phone"]]`                                      | Records match if **either** Email or Phone is the same.                           |
| Combination of `AND` & `OR`                                                 | `[["LinkedInURL1__c", "LinkedInURL2__c"], ["Name", "Email"]]` | Records match if either **LinkedIn URLs match** or **Name and Email** both match. |

{% hint style="danger" %}

#### Important Notes

* Fields used in the Expression **must be configured** in the *Fields section* of your duplicate detection settings.
* Expressions **only identify exact matches** and are often used to complement fuzzy matching algorithms later in the process.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.delpha.io/delpha-for-salesforce/how-to-faq/delpha-duplicate/what-is-the-expression-and-how-to-use-it.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
