---
schema_version: "1"
id: b5ddfe2d5157d3dd0bbeb7c1934b7bac835d51a0bce0db8e8d4e64166d96339e
title: = and == (Equal)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_and_equal.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_and_equal.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1cdd3668597ecb722eeb9daf0f40992f8430e14d0d956e7109b3089a015e2103
description: Evaluates if two values are equivalent. The = and == operators are interchangeable.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# \= and == (Equal)

Evaluates if two values are equivalent. The = and == operators are interchangeable.

![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.

![Due Date 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)

Due Date Example

`Due Date = CreatedDate + 5` returns true if the due date is equal to five days following a record’s created date.

![Commission Amount 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)

Commission Amount Example

```
IF(Probability =1, ROUND(Amount*0.02, 2), 0)
```

This formula calculates the 2% commission amount of an opportunity that has a probability of 100%. All other opportunities have a commission value of 0.

Possible results:

- An opportunity with a Probability of 90% has a commission of 0.
- An opportunity with a Probability of 100% and an Amount of $100,000 has a commission of $2,000.