> For the complete documentation index, see [llms.txt](https://docs.decisionrules.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decisionrules.io/doc/rules/common-rule-features/rule-comparison.md).

# Rule Comparison

Some types of rules support a comparison feature, letting you easily identify differences between two separate rules or rule versions.

Read more about the comparison of the specific rule types in the articles below.

{% content-ref url="/pages/33OiWGGToI8UMFNejyuu" %}
[Decision Table Comparison](/doc/rules/common-rule-features/rule-comparison/decision-table-comparison.md)
{% endcontent-ref %}

{% content-ref url="/pages/UDlWNeRIOcZ2NZELHYZz" %}
[Decision Tree Comparison](/doc/rules/common-rule-features/rule-comparison/decision-tree-comparison.md)
{% endcontent-ref %}

{% content-ref url="/pages/z3Ul0HFfll6wwtP7eqg9" %}
[Scripting Rule Comparison](/doc/rules/common-rule-features/rule-comparison/scripting-rule-comparison.md)
{% endcontent-ref %}

## Accessing Comparison

{% hint style="info" %}
The rule comparison feature is available for specific subscriptions.
{% endhint %}

Only rules of the same type can be compared to each other (i.e. Tables to Tables, Scripts to Scripts).&#x20;

To enter the rule comparison view, right-click on a rule in the Folders menu and choose 'Compare'.

You can also find the same option under each rules' settings or after clicking the ![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2FDqKUASZtkibmFg0vufAD%2Fimage.png?alt=media\&token=01a85199-38eb-4e59-a553-996898a1796e)  on a rule in the 'Business Rules' menu.

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2FYiCcMeFz1NSaiefCiuV2%2Fimage.png?alt=media&amp;token=5071cdea-798e-4bd3-b1a3-091edf2f3edb" alt=""><figcaption></figcaption></figure>

You will be presented with a pop-up screen where the Original rule will have been filled in with the rule you triggered comparison on. Next you should choose which rule to compare the Original rule to (i.e. choose the Reference rule).&#x20;

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2F22rooNHOulsjrvhisijC%2Fimage.png?alt=media&amp;token=cd90a234-3a1d-4169-bf0c-885491556781" alt=""><figcaption></figcaption></figure>

After choosing the reference rule, click the Compare button.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decisionrules.io/doc/rules/common-rule-features/rule-comparison.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
