# Rule

> The rule this condition belongs to, or null when the condition is not part of one.

## Definition

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

```csharp
ITransitionRule Rule { get; }
```

### Remarks

Together with [ITransitionRule.Transition](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/transition.md), this walks up from a condition to the transition it takes part in. A condition that was created but never added to a group has no rule yet.
