# Condition.ComparisonValueType Property

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.ComparisonValueType Property
- **597 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetype-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetype-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetype-property/llms-full.txt

---

### Description

Gets a value of type [ComparisonValueTypes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetypes-enumeration/llms-full.txt) that determines how the condition's comparison value is interpreted. The returned value depends on the type of the condition's [FormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/formfield-property/llms-full.txt), the set comparison value and/or the `textComparisonFlag` or `itemComparisonFlag` parameter that were specified on invoking an instance of the Condition class.

### Syntax

```csharp
public Condition.ComparisonValueTypes ComparisonValueType { get; }
```

```vbnet
Public ReadOnly Property ComparisonValueType As Condition.ComparisonValueTypes
```

### Examples

The following example builds a rule around an approval check box in a fillable form by using `Condition.ComparisonValueType`.

```csharp
CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
Condition condition = new(approvalField, true);

Console.WriteLine($"Comparison Value Type: {condition.ComparisonValueType}");
Console.WriteLine("Condition is ready for use.");
```

```vbnet
Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim condition As New Condition(approvalField, True)

Console.WriteLine($"Comparison Value Type: {condition.ComparisonValueType}")
Console.WriteLine("Condition is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Condition.ComparisonValue Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvalue-property/llms-full.txt)
- **Next:** [Condition.ComparisonValueTypes Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/comparisonvaluetypes-enumeration/llms-full.txt)
