# Rule Comparison

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 ![](/files/EVlKhGPKXIW94tIUU8p8)  on a rule in the 'Business Rules' menu.

<figure><img src="/files/U49wZKsVgQtqQ059zwlp" 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="/files/ayRt9hiRNeG6bTrjsbQR" alt=""><figcaption></figcaption></figure>

After choosing the reference rule, click the Compare button.


---

# 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://docs.decisionrules.io/doc/rules/common-rule-features/rule-comparison.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.
