# FilterInstruction.CompareTo Property

> Gets or sets the value the table column content is compared to using the specified comparison operator. If this value can be parsed to a numerical value, a numerical comparison is used internally when possible (i. e. when the table column contains numerical values, too). Otherwise the column content and this value are interpreted as / converted to strings.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer.DataShaping`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataShaping > FilterInstruction.CompareTo Property
- **442 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/filterinstruction/compareto-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/filterinstruction/compareto-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/filterinstruction/compareto-property/llms-full.txt

---

### Description

Gets or sets the value the table column content is compared to using the specified comparison operator. If this value can be parsed to a numerical value, a numerical comparison is used internally when possible (i. e. when the table column contains numerical values, too). Otherwise the column content and this value are interpreted as / converted to strings.

### Syntax

```csharp
public object CompareTo { get; set; }
```

```vbnet
Public Property CompareTo As Object
```

### Examples

The following example uses `FilterInstruction.CompareTo` to configure compare to as part of the filter instruction workflow. The configured value is checked before the workflow continues.

```csharp
filterInstruction.CompareTo = "Approved";
if (filterInstruction.CompareTo != null)
{
    Console.WriteLine("Filter Instruction: Compare To is available.");
}
```

```vbnet
filterInstruction.CompareTo = "Approved"
If filterInstruction.CompareTo IsNot Nothing Then
    Console.WriteLine("Filter Instruction: Compare To is available.")
End If
```

---

## Nearby

- **Previous:** [FilterInstruction.ColumnName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/filterinstruction/columnname-property/llms-full.txt)
- **Next:** [FilterInstruction.ComparisonOperator Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datashaping/filterinstruction/comparisonoperator-property/llms-full.txt)
