# operator |

> Returns the result of a componentwise bitwise or operation on two bool3 vectors.

## Definition

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

## operator |(bool3, bool3)

Returns the result of a componentwise bitwise or operation on two bool3 vectors.

```csharp
public static bool3 operator |(bool3 lhs, bool3 rhs)
```

### Parameters

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

### Returns

| Type                                                                | Description                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [bool3](/engine/6000.5/script-reference/unity/mathematics/bool3.md) | bool3 result of the componentwise bitwise or. |

## operator |(bool3, bool)

Returns the result of a componentwise bitwise or operation on a bool3 vector and a bool value.

```csharp
public static bool3 operator |(bool3 lhs, bool rhs)
```

### Parameters

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

### Returns

| Type                                                                | Description                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [bool3](/engine/6000.5/script-reference/unity/mathematics/bool3.md) | bool3 result of the componentwise bitwise or. |

## operator |(bool, bool3)

Returns the result of a componentwise bitwise or operation on a bool value and a bool3 vector.

```csharp
public static bool3 operator |(bool lhs, bool3 rhs)
```

### Parameters

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

### Returns

| Type                                                                | Description                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [bool3](/engine/6000.5/script-reference/unity/mathematics/bool3.md) | bool3 result of the componentwise bitwise or. |
