# IsState(States)

> Returns true if the version control state of the asset exactly matches the input state.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.VersionControl](/engine/6000.7/script-reference/unityeditor/versioncontrol.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public bool IsState(Asset.States state)
```

### Parameters

**** (\[States]\(/engine/6000.7/script-reference/unityeditor/versioncontrol/asset/states)): State to check for.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
