---
schema_version: "1"
id: d3d9d2a412dedd6bd0f3bd270a96bc742ffb32c415b08e124c6975c746951a3e
title: <> and != (Not Equal)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_not_equal.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_not_equal.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ef84845cd0a4bb01547cbb20f898f931f78b30d856d72d1b4a5369c59f4b6618
description: Evaluates if two values aren’t equivalent.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# <> and != (Not Equal)

Evaluates if two values aren’t equivalent.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:25.5%">
        <col style="width:74.5%">
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <strong>Description:</strong>
          </td>

          <td class="slds-cell-wrap" style="vertical-align:top;">
            <span id="customize_functions_not_equal__NotEqualDef"><a name="customize_functions_not_equal__NotEqualDef"><!-- --></a>Evaluates if two values aren’t equivalent.</span>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <strong>Use:</strong>
          </td>

          <td class="slds-cell-wrap" style="vertical-align:top;">
            <span id="customize_functions_not_equal__NotEqualUse"><a name="customize_functions_not_equal__NotEqualUse"><!-- --></a><var>expression1 &lt;&gt; expression2</var> or
              <var>expression1 != expression2</var>, and replace each <code>expression</code> with merge fields, expressions, or other numeric
              values.</span>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <strong>Example:</strong>
          </td>

          <td class="slds-cell-wrap" style="vertical-align:top;">
            <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x" id="customize_functions_not_equal__NotEqualExampleCode"><a name="customize_functions_not_equal__NotEqualExampleCode"><!-- --></a><code>IF(Maint_Amount__c + Services_Amount__c&lt;&gt; Amount, 
 "DISCOUNTED", "FULL PRICE")</code></pre>
            <p style="margin-bottom:0;" id="customize_functions_not_equal__NotEqualExampleDesc"><a name="customize_functions_not_equal__NotEqualExampleDesc"><!-- --></a>This formula displays DISCOUNTED on a product if its maintenance
              amount and services amount don’t equal the product amount. Otherwise, displays FULL PRICE.
              Note that this example uses two custom currency fields for Maint Amount and Services
              Amount.</p>
          </td>

        </tr>
      </tbody>
    </table>

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_important.png)

Important Don’t use this function for a null comparison, such as `MyDateTime__c != null`. Use [ISBLANK](https://help.salesforce.com/s/articleView?id=platform.customize_functions_isblank.htm&release=264.0.0&type=5 "Determines if an expression has a value and returns TRUE if it does not. If it contains a value, this function returns FALSE.") instead.

## Use

expression1 <> expression2 or expression1 != expression2, and replace each `expression` with merge fields, expressions, or other numeric values.

![Discount Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Discount Example

```
IF(Maint_Amount__c + Services_Amount__c<> Amount, 
 "DISCOUNTED", "FULL PRICE")
```

This formula displays DISCOUNTED on a product if its maintenance amount and services amount don’t equal the product amount. Otherwise, displays FULL PRICE. Note that this example uses two custom currency fields for Maint Amount and Services Amount.