# Rule Conditions

* For Record Based Rules, you can define conditions based on the fields of your App.
* You can compare the fields of the selected app or any connected apps of the selected app. You can also add multiple conditions and use `AND` – (all conditions must satisfy) or `OR` – (any one condition should satisfy).
* The above example shows two conditions must match (use of `AND`) in order for the rule’s action to be executed :

1. `Current Stock <= Minimum Stock`
2. `Category = Automotive`


---

# 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.workdigital.io/custom-database-apps/automation-rules/record-based-rules/rule-conditions.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.
