# OpcConditionVariableNode&lt;T&gt; Class

> Reference: Defines a generic implementation of the OpcConditionNode.

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcConditionVariableNode&lt;T&gt; Members</a></dd>
</dl>

Defines a generic implementation of the [OpcConditionNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionnode/).

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public class OpcConditionVariableNode<T> : OpcConditionVariableNode
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Class OpcConditionVariableNode(Of T)
    Inherits OpcConditionVariableNode
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `T` | The type of variable value. |

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnode/) → [OpcInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcinstancenode/) → [OpcVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablenode/) → [OpcDataVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatavariablenode/) → [OpcConditionVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode/) → **OpcConditionVariableNode&lt;T&gt;**

## Implements

<ul class="api-implements">
<li><a href="../opc.uafx.iopcnode/">IOpcNode</a></li>
<li><a href="../opc.uafx.iopcnodeinfo/">IOpcNodeInfo</a></li>
<li><a href="../opc.uafx.iopcvariablenodeinfo/">IOpcVariableNodeInfo</a></li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcConditionVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode-1/members#opcconditionvariablenode)<span class="api-meta">10 overloads</span> | Initializes a new instance of the OpcConditionVariableNode&lt;T&gt; class accessible by the `name` specified. |

## Properties

| Name | Description |
|---|---|
| [DataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode-1/members#datatype)<span class="api-meta">override · since v2.8</span> | Gets or sets a value which defines a pre-defined used [DataTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablenode/members#datatypeid) as one of the members defined by the [OpcDataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatype/) enumeration to simplify querying standard data types. |
| [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode-1/members#value) | Gets or sets the value of the condition variable node. |

## Methods

| Name | Description |
|---|---|
| [InitializeDefaults](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode-1/members#initializedefaults)<span class="api-meta">protected · override</span> | Initializes the default values used by the OpcConditionVariableNode&lt;T&gt;. |
| [ReadGenericValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode-1/members#readgenericvalue) | Reads the condition variable node value using the `context` specified. |
| [WriteGenericValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode-1/members#writegenericvalue) | Writes the `value` to the condition variable node value using the `context` specified. |

Inherits members from [OpcConditionVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcconditionvariablenode/members), [OpcVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariablenode/members), [OpcInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcinstancenode/members), [OpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnode/members).

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
