# Condition.TextComparisonFlags Enumeration

> Determines how the specified comparison value has to be interpreted when comparing it with the TextFormField's or SelectionFormField's Text property. 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.TextComparisonFlags Enumeration
- **497 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/textcomparisonflags-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/textcomparisonflags-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/textcomparisonflags-enumeration/llms-full.txt

---

### Description

Determines how the specified comparison value has to be interpreted when comparing it with the [TextFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textformfield/llms-full.txt)'s or [SelectionFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/selectionformfield/llms-full.txt)'s [Text](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/text-property/llms-full.txt) property. The enumeration contains the following values:

### Syntax

```csharp
public enum Condition.TextComparisonFlags
```

```vbnet
Public Enum Condition.TextComparisonFlags
```

### Members

| Member | Value | Description |
|---|---|---|
| CustomText | 0 | The comparison value has to be interpreted as custom text. |
| Regex | 1 | The comparison value has to be interpreted as a regular expression. |

### Examples

The following example selects the Custom Text value from the Text Comparison Flags enumeration and uses it as a documented workflow choice.

```csharp
Condition.TextComparisonFlags value = Condition.TextComparisonFlags.CustomText;
Console.WriteLine($"Using Text Comparison Flags: {value}");
```

```vbnet
Dim value As Condition.TextComparisonFlags = Condition.TextComparisonFlags.CustomText
Console.WriteLine($"Using Text Comparison Flags: {value}")
```

---

## Nearby

- **Previous:** [Condition.Month Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/condition/month-enumeration/llms-full.txt)
- **Next:** [ConditionalInstruction Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/conditionalinstruction/llms-full.txt)
