# Condition.ComparisonValueTypes Enumeration

> Determines how the condition's comparison value is interpreted by the condition. The enumeration contains the following values:

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > Condition.ComparisonValueTypes Enumeration
- **2181 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetypes-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetypes-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetypes-enumeration/llms-full.txt

---

### Description

Determines how the condition's comparison value is interpreted by the condition. The enumeration contains the following values:

### Syntax

```csharp
public enum Condition.ComparisonValueTypes
```

```vbnet
Public Enum Condition.ComparisonValueTypes
```

### Members

| Member | Value | Description |
|---|---|---|
| CheckState | 1 | The condition tests the [check state](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/checked-property/llms-full.txt) of the related condition's [CheckFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/llms-full.txt). If this enumeration value is returned by the [Condition.ComparisonValueType](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetype-property/llms-full.txt) property, the [Condition.ComparisonValue](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvalue-property/llms-full.txt) property is set to true. The [Condition.ComparisonOperator](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonoperator-property/llms-full.txt) returns the enumeration value `ComparisonOperators.Is`, if the condition checks whether the check form field is checked. Otherwise `ComparisonOperators.IsNot`. |
| NoValue | 2 | The condition examines whether the related condition's [FormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/formfield-property/llms-full.txt) property does not provide a suitable value that can be used for comparison. Form field values of type [TextFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textformfield/llms-full.txt) and [SelectionFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selectionformfield/llms-full.txt) are not suitable for comparison, if their [FormField.Text](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/text-property/llms-full.txt) property value is an empty string. The corresponding value of a [DateFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/llms-full.txt) cannot be compared, if its [DateFormField.Date](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/dateformfield/date-property/llms-full.txt) property returns null. If the `ComparisonValueTypes.NoValue` value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue` property is set to null. The `ComparisonValueTypes.NoValue` enumeration value can only be combined with the operator `ComparisonOperators.Is` or `ComparisonOperators.IsNot`. |
| CustomText | 3 | The condition compares the `FormField.Text` property value of the related condition's `TextFormField` or `SelectionFormField` with the value of the `Condition.ComparisonValue` property. If this enumeration value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue` property value is an object of type string. Furthermore, all provided values of the `ComparisonOperators` enumeration can be set as `Condition.ComparisonOperator` property value. |
| Regex | 4 | The condition checks whether or not the `FormField.Text` property value of the related condition's `TextFormField` or `SelectionFormField` matches a specific regular expression. That regular expression is represented by the `Condition.ComparisonValue` property. It is an object of type string and conforms to the rules of the `.NET Framework` regular expression engine. The `ComparisonValueTypes.Regex` enumeration value can only be combined with the operator `ComparisonOperators.Is` or `ComparisonOperators.IsNot`. |
| SpecificItem | 5 | The condition compares the `FormField.Text` property value of the related condition's `SelectionFormField` with an item of [SelectionFormField.Items](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selectionformfield/items-property/llms-full.txt) string array collection. The representation of that item is an object of type string, which is specified by the `Condition.ComparisonValue` property. All provided values of the `ComparisonOperators` enumeration can be set as `Condition.ComparisonOperator` property value. |
| AnyItem | 6 | The condition examines whether the related condition's `SelectionFormField.Text` property value matches one of the `SelectionFormField.Items` string array collection values. If this enumeration value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue` property is set to null. The `ComparisonValueTypes.AnyItem` enumeration value can only be combined with the operator `ComparisonOperators.Is` or `ComparisonOperators.IsNot`. |
| Date | 7 | The condition compares the `DateFormField.Date` property value of the related condition's `DateFormField` with a date that is specified by the `Condition.ComparisonValue` property. If this enumeration value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue` property is an object of type `System.DateTime`. The `ComparisonValueTypes.Date` enumeration value can only be combined with the operator `ComparisonOperators.Is`, `ComparisonOperators.IsNot`,`ComparisonOperators.IsGreaterThan`, `ComparisonOperators.IsGreaterThanOrEqual`, `ComparisonOperators.IsLessThan` or `ComparisonOperators.IsLessThanOrEqual`. |
| Year | 8 | The condition compares the `DateFormField.Date` property value of the related condition's `DateFormField` with a year that is specified by the `Condition.ComparisonValue` property. If this enumeration value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue` property represents an integer between 1601 and 9999. The `ComparisonValueTypes.Year` enumeration value can only be combined with the operator `ComparisonOperators.Is`, `ComparisonOperators.IsNot`, `ComparisonOperators.IsGreaterThan`, `ComparisonOperators.IsGreaterThanOrEqual`, `ComparisonOperators.IsLessThan` or `ComparisonOperators.IsLessThanOrEqual`. |
| Month | 9 | The condition compares the `DateFormField.Date` property value of the related condition's `DateFormField` with a month that is specified by the `Condition.ComparisonValue` property. If this enumeration value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue`property is an object of type [Condition.Month](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/month-enumeration/llms-full.txt). The `ComparisonValueTypes.Month` enumeration value can only be combined with the operator `ComparisonOperators.Is`, `ComparisonOperators.IsNot`, `ComparisonOperators.IsGreaterThan`, `ComparisonOperators.IsGreaterThanOrEqual`, `ComparisonOperators.IsLessThan` or `ComparisonOperators.IsLessThanOrEqual`. |
| DayOfMonth | 10 | The condition compares the `DateFormField.Date` property value of the related condition's `DateFormField` with a day of the month that is specified by the `Condition.ComparisonValue` property. If this enumeration value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue` property represents an integer between 1 and 31. The `ComparisonValueTypes.DayOfMonth` enumeration value can only be combined with the operator `ComparisonOperators.Is`, `ComparisonOperators.IsNot`, `ComparisonOperators.IsGreaterThan`, `ComparisonOperators.IsGreaterThanOrEqual`, `ComparisonOperators.IsLessThan` or `ComparisonOperators.IsLessThanOrEqual`. |
| Weekday | 11 | The condition compares the `DateFormField.Date` property value of the related condition's `DateFormField` with a weekday that is specified by the `Condition.ComparisonValue` property. If this enumeration value is returned by the `Condition.ComparisonValueType` property, the `Condition.ComparisonValue` property is an object of type `System.DayOfWeek`. The `ComparisonValueTypes.Weekday` enumeration value can only be combined with the operator `ComparisonOperators.Is` or `ComparisonOperators.IsNot`. |

### Examples

The following example selects the Check State value from the Comparison Value Types enumeration and uses it as a documented workflow choice.

```csharp
Condition.ComparisonValueTypes value = Condition.ComparisonValueTypes.CheckState;
Console.WriteLine($"Using Comparison Value Types: {value}");
```

```vbnet
Dim value As Condition.ComparisonValueTypes = Condition.ComparisonValueTypes.CheckState
Console.WriteLine($"Using Comparison Value Types: {value}")
```

---

## Nearby

- **Previous:** [Condition.ComparisonValueType Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetype-property/llms-full.txt)
- **Next:** [Condition Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/constructor/llms-full.txt)
