# FilterInstruction.ComparisonOperator Property

> Gets or sets the relational operator used as the comparison operator. See the description of the constructor of this class for possible values.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer.DataShaping`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl.DocumentServer.DataShaping > FilterInstruction.ComparisonOperator Property
- **573 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/filterinstruction/comparisonoperator-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/filterinstruction/comparisonoperator-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/filterinstruction/comparisonoperator-property/llms-full.txt

---

### Description

Gets or sets the relational operator used as the comparison operator. See the description of the constructor of this class for possible values.

### Syntax

```csharp
public RelationalOperator ComparisonOperator { get; set; }
```

```vbnet
Public Property ComparisonOperator As RelationalOperator
```

### Members

| Value | Description |
|---|---|
| Equals | The expression values must be equal. |
| NotEqual | The expression values must be not equal. |
| LessThan | Expression 1 is less than expression 2. |
| GreaterThan | Expression 1 is greater than expression 2. |
| GreaterThanOrEqualTo | Expression 1 is greater than or equal to expression 2. |
| LessThanOrEqualTo | Expression 1 is less than or equal to expression 2. |
| IsBlank | The expression must be null or empty. |
| IsNotBlank | The expression must not be null or empty. |

### Examples

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

```csharp
filterInstruction.ComparisonOperator = TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals;
Console.WriteLine($"Comparison Operator used by Filter Instruction: {filterInstruction.ComparisonOperator}");
```

```vbnet
filterInstruction.ComparisonOperator = TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals
Console.WriteLine($"Comparison Operator used by Filter Instruction: {filterInstruction.ComparisonOperator}")
```

---

## Nearby

- **Previous:** [FilterInstruction.CompareTo Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/filterinstruction/compareto-property/llms-full.txt)
- **Next:** [FilterInstruction Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/filterinstruction/constructor/llms-full.txt)
