# How customer tag based lock conditions works?

Let's say you have three customer tags: Wholesale Group 1, Wholesale Group 2, and Wholesale Group VIP.&#x20;

Here’s how the AND and OR conditions work:

* **OR Condition:** If you create a lock with OR conditions, the lock applies if any of the specified tags are present. For example, if you set an OR condition with Wholesale Group 1 and Wholesale Group 2, a customer needs to have either the Wholesale Group 1 tag or the Wholesale Group 2 tag to be eligible for the lock.
* **AND Condition:** If you add an AND condition along with OR conditions, the customer must have the tag specified in the AND condition in addition to any tag from the OR conditions. For example, if you have an OR condition with Wholesale Group 1 and Wholesale Group 2, and an AND condition with Wholesale Group VIP, a customer must have the Wholesale Group VIP tag along with either Wholesale Group 1 or Wholesale Group 2 tag to be eligible for the lock.

This means that while the OR conditions provide flexibility by allowing any one of the tags, the AND condition adds an extra requirement that must also be met.

<figure><img src="/files/xmnF4uqRDBAhotQxb7zH" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.lockpro.io/how-customer-tag-based-lock-conditions-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
