# operator !(bool2)

> Returns the result of a componentwise not operation on a bool2 vector.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public static bool2 operator !(bool2 val)
```

### Parameters

**** (\[bool2]\(/engine/6000.7/script-reference/unity/mathematics/bool2)): Value to use when computing the componentwise not.

### Returns

| Type                                                                | Description                            |
| ------------------------------------------------------------------- | -------------------------------------- |
| [bool2](/engine/6000.7/script-reference/unity/mathematics/bool2.md) | bool2 result of the componentwise not. |
