---
title: "==(_:_:)"
framework: combine
role: symbol
role_heading: Operator
path: "combine/publishers/replaceerror/==(_:_:)"
---

# ==(_:_:)

Returns a Boolean value that indicates whether two publishers are equivalent.

## Declaration

```swift
static func == (lhs: Publishers.ReplaceError<Upstream>, rhs: Publishers.ReplaceError<Upstream>) -> Bool
```

## Parameters

- `lhs`: A replace error publisher to compare for equality.
- `rhs`: Another replace error publisher to compare for equality.

## Return Value

Return Value true if the two publishers have equal upstream publishers and output elements; otherwise false.
