# TestNone(int, int)

> Returns true if none of the bits in a range are 1 ("i.e." all bits in the range are 0).

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public readonly bool TestNone(int pos, int numBits = 1)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the bit at which to start searching.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of bits to test. Defaults to 1.

### Returns

| Type                                                          | Description                                                                                      |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if none of the bits in range `pos` up to (but not including) `pos + numBits` are 1. |
