# operator &

> Returns the result of a componentwise bitwise and operation on two bool4x2 matrices.

## Definition

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

## operator &(bool4x2, bool4x2)

Returns the result of a componentwise bitwise and operation on two bool4x2 matrices.

```csharp
public static bool4x2 operator &(bool4x2 lhs, bool4x2 rhs)
```

### Parameters

**** (\[bool4x2]\(/engine/6000.7/script-reference/unity/mathematics/bool4x2)): Left hand side bool4x2 to use to compute componentwise bitwise and.**** (\[bool4x2]\(/engine/6000.7/script-reference/unity/mathematics/bool4x2)): Right hand side bool4x2 to use to compute componentwise bitwise and.

### Returns

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

## operator &(bool4x2, bool)

Returns the result of a componentwise bitwise and operation on a bool4x2 matrix and a bool value.

```csharp
public static bool4x2 operator &(bool4x2 lhs, bool rhs)
```

### Parameters

**** (\[bool4x2]\(/engine/6000.7/script-reference/unity/mathematics/bool4x2)): Left hand side bool4x2 to use to compute componentwise bitwise and.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Right hand side bool to use to compute componentwise bitwise and.

### Returns

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

## operator &(bool, bool4x2)

Returns the result of a componentwise bitwise and operation on a bool value and a bool4x2 matrix.

```csharp
public static bool4x2 operator &(bool lhs, bool4x2 rhs)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Left hand side bool to use to compute componentwise bitwise and.**** (\[bool4x2]\(/engine/6000.7/script-reference/unity/mathematics/bool4x2)): Right hand side bool4x2 to use to compute componentwise bitwise and.

### Returns

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