> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ar/form-management/form-designer/answers/answer-types/compare-field.md).

# حقل المقارنة

يتيح نوع الإجابة "حقل المقارنة" مقارنة إدخال المستجيب في ذلك الحقل بإدخال حقل آخر في الاستبيان أو مقارنته بقيمة ثابتة أو نطاق قيمة تحدده.

![](/files/e4850da86c0371f273d23fe5597c917bd1b25b2c)

في المثال أعلاه، حقل تأكيد كلمة المرور هو حقل المقارنة وسيقارن قيمته بحقل كلمة المرور للتأكد من تطابقهما.

## 👥 المقارنة بقيمة إجابة أخرى

لمقارنة قيمة من إجابة أخرى عليك فتح صفحتها [خصائص الإجابة](/ar/form-management/form-designer/answers/answer-properties.md) وتعيين **تسمية الإجابة** إلى الحقل الذي ترغب في المقارنة معه.

![](/files/207b32512dc986fe98a8a2f63e822f980e21389f)

في المثال أعلاه سيقوم حقل المقارنة بمقارنة القيمة التي أدخلت في إجابة كلمة المرور والتحقق من أنها مساوية للقيمة المدخلة في حقل المقارنة.

## 🔢 المقارنة بقيمة ثابتة

لمقارنة قيمة ثابتة بإجابة المستجيب عليك فتح صفحتها [خصائص الإجابة](/ar/form-management/form-designer/answers/answer-properties.md) وتعيين **إجابة المستجيب** أو **نطاق إجابة المستجيب** إلى&#x20;

![](/files/9a0d20d1aedd3f613a661522a7a312d642403f26)

في المثال سيقوم حقل المقارنة بمقارنة إدخال المستجيب والتأكد من أنه يساوي 10.

يمكنك استخدام الشروط التالية للمقارنة.

![](/files/929bd560930a9788f05429038067909be42860ef)

{% hint style="info" %}
المقارنات تعتمد على النوع؛ إذا اخترت مثلاً النوع الرقمي فستكون 10 أكبر من 9، وإذا كان تاريخًا فسيكون 2 يونيو أكبر من 1 يونيو.
{% endhint %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ngsurvey.com/ar/form-management/form-designer/answers/answer-types/compare-field.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
