# ConditionComparison

> Specifies the comparison operator used by a condition to compare a value against the condition's reference value.

## Definition

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

```csharp
public enum ConditionComparison
```

## Remarks

A condition records the operator and the reference value; it does not evaluate them. The consuming runtime performs the comparison. Ordering operators such as [ConditionComparison.Less](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/less.md) only apply to values whose type supports ordering, such as numeric types; other types support [ConditionComparison.Equal](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/equal.md) and [ConditionComparison.NotEqual](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/notequal.md) only.

## Fields

| Value                                                                                                             | Description                                                |
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [Equal](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/equal.md)                   | The value equals the reference value.                      |
| [Greater](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/greater.md)               | The value is greater than the reference value.             |
| [GreaterOrEqual](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/greaterorequal.md) | The value is greater than or equal to the reference value. |
| [Less](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/less.md)                     | The value is less than the reference value.                |
| [LessOrEqual](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/lessorequal.md)       | The value is less than or equal to the reference value.    |
| [NotEqual](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditioncomparison/notequal.md)             | The value does not equal the reference value.              |
