Title: Difference between AND OR condition
Last modified: October 15, 2021

---

# Difference between AND OR condition

 *  Resolved [christinelle](https://wordpress.org/support/users/christinelle/)
 * (@christinelle)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/difference-between-and-or-condition/)
 * Hello,
 * I want to restrict access if the page is a specific page (4 pages selected to
   be restricted) or if it is a shop/product page.
    It works if I use “AND” condition
   but not if I use “OR” condition. As it does not seem logical to me I prefer to
   point it out to you. Maybe there is something that i did not understand in your
   documentation, or maybe a clarification needs to be made …
 * Regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/difference-between-and-or-condition/#post-15027274)
 * Thank you for reporting this.
 * Can you provide a screenshot of the Access Conditions for the access level in
   question? You can use imgur.com
 * Generally, to limit access to specific pages and the Shop page, you need access
   conditions like this:
    Group 1: Page1, Page2, Page3, … OR Group 2: All Products/
   Shop Page. Click on Settings in the upper right corner and select Page Type=Archive

Viewing 1 replies (of 1 total)

The topic ‘Difference between AND OR condition’ is closed to new replies.

 * ![](https://ps.w.org/restrict-user-access/assets/icon-256x256.png?rev=1815922)
 * [Restrict User Access - Ultimate Membership & Content Protection](https://wordpress.org/plugins/restrict-user-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-user-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-user-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-user-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-user-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-user-access/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/difference-between-and-or-condition/#post-15027274)
 * Status: resolved