---
schema_version: "1"
id: 269d1174f40fc4a95d0ab259b53c0c403d56b4406a100f3bf667bb3fbd068eef
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.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_or.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ef467ce2c3eaa9f84aa955deb5622734f1c2b88c9a802e69ed9d0f6b3dfb9bc4
description: Evaluates if at least one of multiple values or expressions is true. Use this operator as an alternative to the logical function OR.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# || (OR)

Evaluates if at least one of multiple values or expressions is true. Use this operator as an alternative to the logical function OR.

## Use

`(logical1) || (logical2)` and replace any number of logical references with the values or expressions you want evaluated.

![Case 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)

Case Example

`IF((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

```
(Discount_Rate__c < 0) || (Discount_Rate__c > 0.40)
```

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