# operator !=

> Returns the result of a componentwise not equal operation on two half4 vectors.

## Definition

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

## operator !=(half4, half4)

Returns the result of a componentwise not equal operation on two half4 vectors.

```csharp
public static bool4 operator !=(half4 lhs, half4 rhs)
```

### Parameters

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

### Returns

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

## operator !=(half4, half)

Returns the result of a componentwise not equal operation on a half4 vector and a half value.

```csharp
public static bool4 operator !=(half4 lhs, half rhs)
```

### Parameters

**** (\[half4]\(/engine/6000.5/script-reference/unity/mathematics/half4)): Left hand side half4 to use to compute componentwise not equal.**** (\[half]\(/engine/6000.5/script-reference/unity/mathematics/half)): Right hand side half to use to compute componentwise not equal.

### Returns

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

## operator !=(half, half4)

Returns the result of a componentwise not equal operation on a half value and a half4 vector.

```csharp
public static bool4 operator !=(half lhs, half4 rhs)
```

### Parameters

**** (\[half]\(/engine/6000.5/script-reference/unity/mathematics/half)): Left hand side half to use to compute componentwise not equal.**** (\[half4]\(/engine/6000.5/script-reference/unity/mathematics/half4)): Right hand side half4 to use to compute componentwise not equal.

### Returns

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