# operator !=

> Returns true if two strings are unequal.

## Definition

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

## operator !=(NativeText, FixedString32Bytes)

Returns true if two strings are unequal.

```csharp
public static bool operator !=(in NativeText a, in FixedString32Bytes b)
```

### Parameters

**** (\[NativeText]\(/engine/6000.7/script-reference/unity/collections/nativetext)): A string to compare.**** (\[FixedString32Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring32bytes)): Another string to compare.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two strings are unequal. |

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator !=(NativeText, FixedString64Bytes)

Returns true if two strings are unequal.

```csharp
public static bool operator !=(in NativeText a, in FixedString64Bytes b)
```

### Parameters

**** (\[NativeText]\(/engine/6000.7/script-reference/unity/collections/nativetext)): A string to compare.**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): Another string to compare.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two strings are unequal. |

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator !=(NativeText, FixedString128Bytes)

Returns true if two strings are unequal.

```csharp
public static bool operator !=(in NativeText a, in FixedString128Bytes b)
```

### Parameters

**** (\[NativeText]\(/engine/6000.7/script-reference/unity/collections/nativetext)): A string to compare.**** (\[FixedString128Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring128bytes)): Another string to compare.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two strings are unequal. |

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator !=(NativeText, FixedString512Bytes)

Returns true if two strings are unequal.

```csharp
public static bool operator !=(in NativeText a, in FixedString512Bytes b)
```

### Parameters

**** (\[NativeText]\(/engine/6000.7/script-reference/unity/collections/nativetext)): A string to compare.**** (\[FixedString512Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring512bytes)): Another string to compare.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two strings are unequal. |

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator !=(NativeText, FixedString4096Bytes)

Returns true if two strings are unequal.

```csharp
public static bool operator !=(in NativeText a, in FixedString4096Bytes b)
```

### Parameters

**** (\[NativeText]\(/engine/6000.7/script-reference/unity/collections/nativetext)): A string to compare.**** (\[FixedString4096Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring4096bytes)): Another string to compare.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two strings are unequal. |

### Remarks

Two strings are equal if they have equal length and all their characters match.
