# Compare Field

The compare field answer type allows you to compare the respondent entry in that field to another field entry in the survey or to compare it against a fixed value or value range that you define.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBy9K6mPB7MITp_lb-s%2F-MBy9S2IyW6oyJ5j1ZeC%2Fimage.png?alt=media\&token=6f6d33d5-2982-4766-946b-1e5d6dd79610)

In the example above the Confirm password is the compare field and will compare its value against the Password field to make sure that those are matching.

## 👥 Comparing against another answer value

To compare a value from another answer you have open its [answer properties](https://docs.ngsurvey.com/form-management/form-designer/answers/answer-properties) page and set its **Answer label** to the field you wish to compare to.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBy9aPXIDWP9xgiKEHK%2F-MBy9qMYm2H07Il2Yo0E%2Fimage.png?alt=media\&token=f14b4218-7b14-4c5a-a91a-1c760d8520d9)

In the example above the compare field will compare the value that was entered in the Password answer and check that its equal to the value entered in the compare field.

## 🔢 Comparing against a static value

To compare a static value against the respondent answer you have to open its [answer properties](https://docs.ngsurvey.com/form-management/form-designer/answers/answer-properties) page and set the **Respondent answer** or **Respondent answer range** to&#x20;

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBy9aPXIDWP9xgiKEHK%2F-MByBJ1QbLQEV4meSN-f%2Fimage.png?alt=media\&token=01e6ca43-a55b-4639-b055-926186f173b2)

In the example the compare field will compare the entry of the respondent and make sure that its equals to 10.

You may use following conditions for your comparison.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBy9aPXIDWP9xgiKEHK%2F-MByBc7Az10WMD705WiF%2Fimage.png?alt=media\&token=17095c72-15dd-46ee-808d-b53eeeacf34f)

{% hint style="info" %}
Comparisons are type depended if you selected for example the numeric type then 10 would be greater than 9, if it was a date then 2nd June would be greater than 1st June.
{% endhint %}
