# CompareOperator Enum

Defines the type of comparison operation to perform when validating values. Used by [RadzenCompareValidator](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenCompareValidator.md) to determine how to compare the component value against the target value.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Syntax

```csharp
public enum CompareOperator
```

## Fields

| Field | Description |
|-------|-------------|
| Equal | Validates that values are equal. Useful for password confirmation fields. |
| GreaterThan | Validates that the component value is greater than the comparison value. Useful for numeric range validation. |
| GreaterThanEqual | Validates that the component value is greater than or equal to the comparison value. |
| LessThan | Validates that the component value is less than the comparison value. |
| LessThanEqual | Validates that the component value is less than or equal to the comparison value. |
| NotEqual | Validates that values are not equal. Useful for ensuring a value differs from a specific value. |

