---
page_title: Configuring Comparator
product: Juspay FRM
page_source: https://juspay.io/in/docs/juspay-frm/docs/program-management/configuring-comparator
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/juspay-frm/llms.txt
---


# Understanding Comparator



A **Comparator** , as the name suggests, evaluates and compares **two or more conditions**  to produce a**risk decision**  (e.g., pass, flag or reject) when the conditions match, and applies an alternate decision otherwise.


## Components of comparator:




### 1. Condition



Using attributes (such as `Clientld`, `CurrentTimeOfDay`, `Merchantld`, `Customerld`, `CustomerName`, `CustomerPhone`) along with operators and values.

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/juspay-frm/Screenshot%202026-01-28%20at%203.07.18%E2%80%AFPM.png)

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/juspay-frm/Screenshot%202026-02-19%20at%2012.01.09%E2%80%AFPM-fyBW4.png)
*Adding a Condition*




### 2. Counting Counters



Counting counters is configured to be used as conditions, allowing decisions to be based on pre-defined configuration.

It is similar to the [counter section](https://juspay.io/in/docs/juspay-frm/docs/program-management/overview) but is only meant to count and not to give out a status based on a range (here we don’t have range configuration). 

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/juspay-frm/Screenshot%202026-01-28%20at%203.36.25%E2%80%AFPM.png)
*Adding Counting Counter *



Counting counters **expand the capabilities of the Comparator module** . They enable merchants to define custom counting conditions based on specific business requirements and then combine these conditions with other predefined options (e.g., `Clientld`, `CurrentTimeOfDay`) within the Comparator to achieve the desired outcome.

> **Note**
> [Explicit counters](https://juspay.io/in/docs/juspay-frm/docs/program-management/configuration-counters#2.-Configuring-Explicit-Counters)can be configured under counting counters.



Within a comparator, you can add:

* **Conditions**  (attribute-based checks), and
* **Counters**  (counting counters)

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/juspay-frm/Comparator%20Configuration%20Dashboard-UIirn.png)




### Configuring Counting Counters



[Video](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/juspay-frm/Filter%20Check%20(25).mp4)



**Steps to add a counter:** 

1. Go to **Comparator**  → click **+ Add Counter** .
2. Enter a **Counter Name**  and choose the **Operation**  (count, amount, or association).
3. (Optional) Add **Levels**  to define scope.
4. Add **Conditions**  to control when the counter increments.
5. Select a **Reset Window**  and duration.
6. Review the summary and click **Add Counter** .


## Demo Video



This demo video walks through how to configure a **Comparator**  with a **condition** , create a **Counting Counter** , and use that counter as the condition to determine the **outcome of a rule** .

[Video](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/juspay-frm/Filter%20Check%20(26).mp4)



---

## See Also

- [Configuration Counters](https://juspay.io/in/docs/juspay-frm/docs/program-management/configuration-counters)
- [Order Status API](https://juspay.io/in/docs/juspay-frm/docs/handling-frm-response/order-status-api)
