> 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).

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

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

![](https://848173432-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)

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

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

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

![](https://848173432-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)

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

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

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

![](https://848173432-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)

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

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

![](https://848173432-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" %}
المقارنات تعتمد على النوع؛ إذا اخترت مثلاً النوع الرقمي فستكون 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 by asking a question.

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

```
GET https://docs.ngsurvey.com/ar/form-management/form-designer/answers/answer-types/compare-field.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.
