# operator >(ComponentType, ComponentType)

> Evaluates if one component type is greater than the the other.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public static bool operator >(ComponentType lhs, ComponentType rhs)
```

### Parameters

**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): The left-hand side**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): The right-hand side

### Returns

| Type                                                          | Description                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the left-hand side's [ComponentType.TypeIndex](/engine/7000.0/script-reference/unity/entities/componenttype/typeindex.md) is less than the right-hand side's. If the type indices match, the [ComponentType.AccessModeType](/engine/7000.0/script-reference/unity/entities/componenttype/accessmodetype.md) fields are compared instead. |
