# Condition.LogicalConnective Property

> Gets or sets a value of type Condition.LogicalConnectives that describes how the condition is related to the previous condition inside the corresponding ConditionalInstruction.Conditions array. If the condition is the first element of that array, the value of that property is ignored. The default value is LogicalConnectives.And.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > Condition.LogicalConnective Property
- **614 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/logicalconnective-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/logicalconnective-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/logicalconnective-property/llms-full.txt

---

### Description

Gets or sets a value of type [Condition.LogicalConnectives](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/logicalconnectives-enumeration/llms-full.txt) that describes how the condition is related to the previous condition inside the corresponding [ConditionalInstruction.Conditions](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstruction/conditions-property/llms-full.txt) array. If the condition is the first element of that array, the value of that property is ignored. The default value is `LogicalConnectives.And`.

### Syntax

```csharp
public Condition.LogicalConnectives LogicalConnective { get; set; }
```

```vbnet
Public Property LogicalConnective As Condition.LogicalConnectives
```

### Examples

The following example builds a rule around an approval check box in a fillable form by using `Condition.LogicalConnective`.

```csharp
CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
Condition condition = new(approvalField, true);

condition.LogicalConnective = Condition.LogicalConnectives.And;
Console.WriteLine($"Logical Connective used by Condition: {condition.LogicalConnective}");
```

```vbnet
Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim condition As New Condition(approvalField, True)

condition.LogicalConnective = Condition.LogicalConnectives.And
Console.WriteLine($"Logical Connective used by Condition: {condition.LogicalConnective}")
```

---

## Nearby

- **Previous:** [Condition.ItemComparisonFlags Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/itemcomparisonflags-enumeration/llms-full.txt)
- **Next:** [Condition.LogicalConnectives Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/logicalconnectives-enumeration/llms-full.txt)
