# Requirements section

## Overview

This section allows to build advanced logical expressions based on values of the order.

A requirement can evaluate to either True or False value.

A group is a requirement that is evaluated based on the requirements that are contained in this group. AND/OR operator can be used to evaluate the group.

All requirements are placed in the root group called *DefaultRequirementGroup*.&#x20;

## Entities

Requirements can be placed on following entities:

* Billing address
* Shipping address
* Checkout attributes
* Order totals
* Specification attributes
* Shipping methods *(not aplacible)*
* Product Category, Manufacturer, Vendor

## Operators

| Operator            | Meaning                                                                                        |
| ------------------- | ---------------------------------------------------------------------------------------------- |
| ==                  | equals to                                                                                      |
| !=                  | not equals to                                                                                  |
| >                   | greater than                                                                                   |
| >=                  | greater than or equal to                                                                       |
| <                   | less than                                                                                      |
| <=                  | less than or equal to                                                                          |
| in                  | <p>the value is contained in the list<br><br>use a list of values separated with comma</p>     |
| not in              | <p>the value is not contained in the list<br><br>use a list of values separated with comma</p> |
| contain             | the value contains                                                                             |
| starts with         | the value starts with                                                                          |
| does not start with | the value does not start with                                                                  |

{% hint style="warning" %}
If you are using in/not in parameter, input a list of values separated with comma.
{% endhint %}

## Creating a requirement (not group)

1. Select requirement type
2. Select a group, to which a requirement will be added *(hidden if only root group is present)*
3. Select the property, value of this property will be compared
4. Select operator for comparison
5. Input a value for comparison. If you are using in/not in parameter, input a list of values separated with comma.
6. Click save.

## Creating a requirement (group)

1. Select Add requirement group in requirement type field.
2. Select a group, to which a requirement will be added *(hidden if only root group is present)*
3. Input a group name. It's recommended to have group names unique for your clarity.
4. Click save.
5. Select whether elements in this group will be compared by AND or OR operator.


---

# 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://tablerate.docs.foxnetsoft.com/table-rates/requirements-section.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.
