# operator ==(ToggleButtonGroupState, ToggleButtonGroupState)

> Checks if both of the ToggleButtonGroupState are the same.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public static bool operator ==(ToggleButtonGroupState lhs, ToggleButtonGroupState rhs)
```

### Parameters

**** (\[ToggleButtonGroupState]\(/engine/6000.6/script-reference/unityengine/uielements/togglebuttongroupstate)): The first option set to be compared against.**** (\[ToggleButtonGroupState]\(/engine/6000.6/script-reference/unityengine/uielements/togglebuttongroupstate)): The second option set to be compared against.

### Returns

| Type                                                          | Description                                                     |
| ------------------------------------------------------------- | --------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if both option sets are the same, otherwise returns false. |
