# NextIfField Constructor

> Initializes a new instance of the NextIfField class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 20.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 > NextIfField Constructor
- **547 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextiffield/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextiffield/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextiffield/constructor/llms-full.txt

---

### Description

Initializes a new instance of the NextIfField class.

### Syntax

#### NextIfField()

Initializes a complete new instance of the NextIfField class without a connection to an existing ApplicationField.

```csharp
public NextIfField();
```

```vbnet
Public Sub New()
```

#### NextIfField(ApplicationField)

Initializes a new instance of the NextIfField class with a connection to an existing ApplicationField.

```csharp
public NextIfField(ApplicationField appField);
```

```vbnet
Public Sub New(appField As ApplicationField)
```

| Parameter | Description |
|---|---|
| appField | Specifies the ApplicationField to be adapted. |

### Examples

The following example creates a Next If Field instance and configures its operator setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Fields.NextIfField nextIfField = new();
nextIfField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.Equals;
```

```vbnet
Dim nextIfField As New TXTextControl.DocumentServer.Fields.NextIfField()
nextIfField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.Equals
```

---

## Nearby

- **Previous:** [NextIfField Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextiffield/llms-full.txt)
- **Next:** [NextIfField.DataSourceCulture Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/nextiffield/datasourceculture-property/llms-full.txt)
