# IsOneOfStates(States[])

> Returns true if the version control state of the assets is one of the input states.

## Definition

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

```csharp
public bool IsOneOfStates(Asset.States[] states)
```

### Parameters

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

### Returns

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