--- title: "Group Visibility Rules using And and OR conditions" slug: "group-visibility-rules-using-and-and-or-conditions" updated: 2026-09-10T14:39:59Z published: 2026-09-10T14:39:59Z canonical: "support.whatfix.com/group-visibility-rules-using-and-and-or-conditions" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Group Visibility Rules using And and OR conditions Note: If you see the following UI, you have the New Visibility Rules enabled for the account. For more information, see [Understand New Visibility Rules](https://support.whatfix.com/docs/understand-visibility-rules-20). ![Visibility Rules 2.0 screenshot](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/vr2_main%20page.png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A05%3A38Z&se=2026-11-10T19%3A05%3A38Z&sr=c&sp=r&sig=BC%2FDD71hPFFyXFtGvF2uRfnjFyHdzyNyIULV93Nt9bc%3D) While adding Visibility Rules, use the **And** and **Or** conditions to determine when certain widgets or content should be displayed. Whatfix also enables you to use both these conditions together as a combination for fine-tuned control over when certain elements are displayed or actions are taken. #### And Condition All conditions connected by **And** must be true for the overall condition to be true. For example, if you have an application with different pages, and you want to display a widget only on the Home page when the user is logged in. Use the **And** condition to combine the specific Visibility Rules and the widget will be displayed if and only if both conditions, **Page is Home** and **User is Logged in**, are true simultaneously. ![visibility rule_and condition.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/visibility%20rule_and%20condition.png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A05%3A38Z&se=2026-11-10T19%3A05%3A38Z&sr=c&sp=r&sig=BC%2FDD71hPFFyXFtGvF2uRfnjFyHdzyNyIULV93Nt9bc%3D) Here are all the scenarios where the **And** condition works, | Visibility Rule 1 | Visibility Rule 2 | Does content display? | | --- | --- | --- | | True | True | Yes | | True | False | No | | False | True | No | | False | False | No | #### Or Condition If any of the conditions connected by **Or** is true, the overall condition is true. For example, if you might want to display a feature announcement Pop-up to users who either have an Account Manager or a Content Manager role. Use the **Or** condition to combine the specific Visibility Rules and the Pop-up will be displayed if either one of the conditions are met. ![visibility rule_or condition.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/visibility%20rule_or%20condition.png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A05%3A38Z&se=2026-11-10T19%3A05%3A38Z&sr=c&sp=r&sig=BC%2FDD71hPFFyXFtGvF2uRfnjFyHdzyNyIULV93Nt9bc%3D) Here are all the scenarios where the **Or** condition works, | Visibility Rule 1 | Visibility Rule 2 | Does content display? | | --- | --- | --- | | True | True | Yes | | True | False | Yes | | False | True | Yes | | False | False | No | #### Combination of And and Or Conditions When you use **And** and **Or** together to build Visibility Rules, **And** connects condition groups joined by **Or**. Conditions joined by **Or** appear together in a shaded block in the Visibility Rules builder. **And** connects that group to subsequent conditions or groups. For example, to display a Popup on a Salesforce Lightning Opportunity page, you can configure the following conditions: - Set the URL Contains condition to **/lightning/o/Opportunity** and **/lightning/r/Opportunity**. - Group these two conditions using **Or**. - Combine this group with the Domain Contains condition set to [**lightning.force.com**](http://lightning.force.com) using **And**. Here’s an example of how the combination of **AND/OR** appear in the Visibility Rules page**:** ![visibility rule_grouped or and and condition.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/db_avr_combi_and_or.png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A05%3A38Z&se=2026-11-10T19%3A05%3A38Z&sr=c&sp=r&sig=BC%2FDD71hPFFyXFtGvF2uRfnjFyHdzyNyIULV93Nt9bc%3D) The shaded block shows the **Or**-grouped conditions, while the **And** dropdown appears outside the block, connecting the group to the next condition. ## Related - [What has changed in the new Visibility Rules experience?](/what-has-changed-in-visibility-rules-20.md) - [How to use AND and OR Conditions inside Widget Segments](/how-to-use-and-and-or-conditions-inside-widget-segments.md)