# Javascript: TXTextControl.IfField.trueText Property

> Specifies the text that should be displayed when the comparison is true.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.IfField.trueText Property
- **165 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-iffield/truetext-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-iffield/truetext-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-iffield/truetext-property/llms-full.txt

---

### Description

Specifies the text that should be displayed when the comparison is true.

### Syntax

```javascript
<string> TXTextControl.IfField.trueText
```

### Examples

The following example demonstrates `TXTextControl.IfField.trueText` in a practical document-editing workflow. It specifies the text that should be displayed when the comparison is true.

```javascript
function inspectTrueText(ifField) {
    const trueText = ifField.trueText;
    console.log("true text:", trueText);
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.IfField.text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-iffield/text-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.ImageFormat Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/imageformat-enumeration/llms-full.txt)
