---
title: Ribbon Button Extended Rights Or Conditions
slug: ribbon-button-extended-rights-or-conditions
docTags: 
createdAt: 2026-01-28T00:00:42.878Z
---

This document explains how logical conditions are evaluated in RibbonButton ExtendedRights, and how to implement OR logic correctly.

# Overview

RibbonButton ExtendedRights control whether a ribbon action is available based on one or more evaluated rights. Understanding how these expressions are processed is important to ensure buttons appear or are enabled as intended.

# Default Evaluation Behaviour

ExtendedRights expressions are evaluated left to right. If multiple rights are specified without an explicit operator, the evaluation behaves as a logical AND.

This means:

- Each right must evaluate to true
- Evaluation stops as soon as a right evaluates to false
- The overall result is false if any condition fails

# Using OR Logic

OR logic is supported by explicitly using the vertical bar (|) operator between conditions.

For example:

:::BlockQuote
Unpublished|!CanOrder
:::

In this example, the ExtendedRights condition evaluates to true if either of the following is true:

- The item is unpublished
- The user does not have the CanOrder right

# Summary

- RibbonButton ExtendedRights default to AND-style evaluation
- OR conditions are supported using the | operator
- Explicit operators are required to avoid unintended access or visibility behaviour
