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

# !=(_:_:)

## Declaration

```swift
static func != <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
```

## See Also

### Comparing Strings Using Operators

- [==(_:_:)](swift/string/==(_:_:).md)
- [==(_:_:)](swift/string/==(_:_:)-8kzxf.md)
- [~=(_:_:)](swift/string/~=(_:_:).md)
