---
schema_version: "1"
id: 8efed33b3b9d6c50fff82c8ba86873c64059b5086dbc67b424fbdafb18d7d62a
title: OR
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_or_0.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_or_0.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 680fee26ee441d436c4303dc896157c4508b83997456893e2b8eb467158d2c45
description: Determines if expressions are true or false. Returns TRUE if any expression is true. Returns FALSE if all expressions are false.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# OR

Determines if expressions are true or false. Returns TRUE if any expression is true. Returns FALSE if all expressions are false.

Use this function as an alternative to the operator [|| (OR)](https://help.salesforce.com/s/articleView?id=platform.customize_functions_or.htm&release=264.0.0&type=5 "Evaluates if at least one of multiple values or expressions is true. Use this operator as an alternative to the logical function OR.")

## Use

`OR(logical1, logical2...)` and replace any number of logical references with the expressions you want evaluated.

![Formula Field 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)

Formula Field Example `IF(OR(ISPICKVAL(Priority, "High"), ISPICKVAL(Status, "New")), ROUND(NOW()-CreatedDate, 0), null)`

This formula returns the number of days a case has been open if the Status is new or the Priority is high. If the case was opened today, this field displays a zero.

![Validation Rule 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)

Validation Rule Example

```
OR(Sample_Rate__c < 0, Sample_Rate__c > 0.40)
```

This validation rule formula displays this error message when the Sample Rate custom field value isn’t between 0% and 40%: “Sample Rate cannot exceed 40%.”