# Condition Class

> An object of the Condition class is an element of the ConditionalInstruction class and represents the state of a FormField that has to be fulfilled to execute the instructions of the related ConditionalInstruction object. The number of conditions inside a ConditionalInstruction object is not limited. If the ConditionalInstruction.Conditions property contains more than one element, each subsequent Condition object is connected to the previous one by an AND or OR logical connective. That implies that all these conditions are considered as a whole when the conditional instruction is tested whether or not the requirements to execute its instructions are fulfilled.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Implements:** `System.IComparable`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > Condition Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/#members)

---

## In This Section

- [Condition.ComparisonOperator Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonoperator-property/llms.txt): Gets the operator that is used to compare the condition's form field value with the specified comparison value.
- [Condition.ComparisonOperators Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonoperators-enumeration/llms.txt): Determines the comparison operator that is used to compare the condition's form field value with the specified comparison value or the interpretation of that value. The enumeration contains the following values:
- [Condition.ComparisonValue Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonvalue-property/llms.txt): Gets the value that is compared with the condition's form field value.
- [Condition.ComparisonValueType Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonvaluetype-property/llms.txt): Gets a value of type ComparisonValueTypes that determines how the condition's comparison value is interpreted. The returned value depends on the type of the condition's FormField, the set comparison value and/or the textComparisonFlag or itemComparisonFlag parameter that were specified on invoking an instance of the Condition class.
- [Condition.ComparisonValueTypes Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonvaluetypes-enumeration/llms.txt): Determines how the condition's comparison value is interpreted by the condition. The enumeration contains the following values:
- [Condition Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/constructor/llms.txt): Initializes a new instance of the Condition class.
- [Condition.FormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/formfield-property/llms.txt): Gets the FormField whose property value is to be compared with the condition's comparison value.
- [Condition.ItemComparisonFlags Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/itemcomparisonflags-enumeration/llms.txt): Determines how the specified comparison value has to be interpreted when comparing it with the SelectionFormField's Text property. The enumeration contains the following values:
- [Condition.LogicalConnective Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/logicalconnective-property/llms.txt): Gets or sets a value of type Condition.LogicalConnectives that describes how the condition is related to the previous condition inside the corresponding ConditionalInstruction.Conditions array. If the condition is the first element of that array, the value of that property is ignored. The default value is LogicalConnectives.And.
- [Condition.LogicalConnectives Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/logicalconnectives-enumeration/llms.txt): Determines how the condition is related to the previous condition inside the corresponding ConditionalInstruction.Conditions array. The enumeration contains the following values:
- [Condition.Month Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/month-enumeration/llms.txt): Determines the month that is compared with the condition's form field value. This enumeration can only be used as comparison value for form fields of type DateFormField. It contains the following values:
- [Condition.TextComparisonFlags Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/textcomparisonflags-enumeration/llms.txt): Determines how the specified comparison value has to be interpreted when comparing it with the TextFormField's or SelectionFormField's Text property. The enumeration contains the following values:

---

## Nearby

- **Previous:** [CommentEventArgs.CommentedText Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/commenteventargs/commentedtext-property/llms.txt)
- **Next:** [Condition.ComparisonOperator Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonoperator-property/llms.txt)
