# Condition.ComparisonValue Property

> Gets the value that is compared with the condition's form field value.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > Condition.ComparisonValue Property
- **510 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonvalue-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonvalue-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonvalue-property/llms-full.txt

---

### Description

Gets the value that is compared with the condition's [form field](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/formfield-property/llms-full.txt) value.

### Syntax

```csharp
public object ComparisonValue { get; }
```

```vbnet
Public ReadOnly Property ComparisonValue As Object
```

### Examples

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

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

Console.WriteLine($"Comparison Value: {condition.ComparisonValue}");
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: {condition.ComparisonValue}")
Console.WriteLine("Condition is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Condition.ComparisonOperators Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonoperators-enumeration/llms-full.txt)
- **Next:** [Condition.ComparisonValueType Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/comparisonvaluetype-property/llms-full.txt)
