---
title: "!=(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/!=(_:_:)-9wy5n"
---

# !=(_:_:)

Returns a Boolean value indicating whether the two arguments are not equal.

## Declaration

```swift
func != <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
```

## Parameters

- `lhs`: A raw-representable instance.
- `rhs`: A second raw-representable instance.

## See Also

### Comparing Values

- [==(_:_:)](swift/==(_:_:)-9hu5c.md)
- [!=(_:_:)](swift/!=(_:_:)-8pggn.md)
