# IfField.TrueText Property

> Gets and sets the text that should be displayed when the comparison is true.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **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.Fields > IfField.TrueText Property
- **397 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/truetext-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/truetext-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/truetext-property/llms-full.txt

---

### Description

Gets and sets the text that should be displayed when the comparison is true.

### Syntax

```csharp
public string TrueText { get; set; }
```

```vbnet
Public Property TrueText As String
```

### Examples

The following example uses `IfField.TrueText` to configure true text as part of the if field workflow. The configured value is checked before the workflow continues.

```csharp
ifField.TrueText = "Quarterly results";
if (!string.IsNullOrWhiteSpace(ifField.TrueText))
{
    Console.WriteLine($"True Text: {ifField.TrueText}");
}
```

```vbnet
ifField.TrueText = "Quarterly results"
If Not String.IsNullOrWhiteSpace(ifField.TrueText) Then
    Console.WriteLine($"True Text: {ifField.TrueText}")
End If
```

---

## Nearby

- **Previous:** [IfField.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/text-property/llms-full.txt)
- **Next:** [IncludeText Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/includetext/llms-full.txt)
