# Add(ICondition)

> Adds an existing condition to this group.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
void Add(ICondition condition)
```

### Parameters

**** (\[ICondition]\(/engine/6000.7/script-reference/unity/graphtoolkit/editor/icondition)): The condition to add.

### Remarks

If the condition already belongs to another group, it is first removed from that group. The condition is appended at the end of this group. Throws ArgumentException when the condition is this group or a group that contains this group, or when the condition, or one of its nested conditions, uses a variable from another graph.
