# Question Conditions

## ❓ What are question conditions ?

Question conditions allows you to define a condition based on the actual respondent answers to that [question](/form-management/form-designer/questions.md).

## 🔅 Question condition types

One you have selected a [question](/form-management/form-designer/questions.md) for your [condition rule](/form-management/form-designer/condition-rules/conditions-rules.md) you may define how it will be evaluated. The rule will be evaluate to true if ngSurvey was able to match its condition definitions.

![](/files/-MBrjDDh8KKvMIiSz7FV)

* **`Answered`**&#x77;ill be trigger the rule if the selected answer has been selected by the respondent.
* **`Not answered`** will be trigger the rule if the selected answer has not been selected by the respondent.
* **`Rated`** let you define the [rating](/form-management/form-designer/questions/rating.md) that should be reached for that question.
* **`Scored`** let you define a [score](/form-management/form-designer/scoring.md) total that should be reached for that question.

## 📃 Question condition answers

You may select one answer that will be included in your condition's definition. If you select **any answer** definition will be evaluated to true if the respondent has selected any answer of the question.

![](/files/-MBrkiLzv9RIdSnJw9y3)

{% hint style="info" %}
If you want to evaluate that the respondent did not answer a question you may set the condition type to **Not answered** and set the condition answer **to Any answer.**
{% endhint %}

## 🔠 Text answers conditions

![](/files/-MBro-WsEjbwOGgr2xps)

The condition definitions of text based repondent answers like [field answers](/form-management/form-designer/questions/question-types/standard/text-comment-field.md) can be further fine tuned using following properties.

1. Comparison operator.
2. Value to compare.
3. Type used for comparison.

## ➗ Comparison operators

![](/files/-MBrllTroEZ-NTVk5BhF)

* **`Equals`**&#x63;heck that the value is equals the one entered by the respondent. This is not case sensitive.
* **`Contains`** check that the value is part of the one entered by the respondent.
* **`Greater`** check that the value is greater than the one entered by the respondent. This is type depended if you selected for example the numeric then 10 would be greater than 9, if it was a date then 2nd June would be greater than 1st June. &#x20;
* **`Less`** check that the value is less than the one entered by the respondent.
* **`RegEx`** let you define a regular expression to validate the respondent value.

{% hint style="info" %}
If you want to evaluate that a respondent answer text is not equals to a value you may set the condition type to **Not answered** and the comparison operator to **equals**
{% endhint %}


---

# 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.ngsurvey.com/form-management/form-designer/condition-rules/conditions-rules/question-conditions.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.
