---
title: "==(_:_:)"
framework: combine
role: symbol
role_heading: Operator
path: "combine/subscribers/demand/==(_:_:)-7246z"
---

# ==(_:_:)

Returns a Boolean value that indicates whether a demand requests the given number of elements.

## Declaration

```swift
static func == (lhs: Subscribers.Demand, rhs: Int) -> Bool
```

## Discussion

Discussion An .unlimited demand doesn’t match any integer.

## See Also

### Comparing demands

- [==(_:_:)](combine/subscribers/demand/==(_:_:)-4oy8i.md)
- [!=(_:_:)](combine/subscribers/demand/!=(_:_:)-3j2h8.md)
- [!=(_:_:)](combine/subscribers/demand/!=(_:_:)-2dj1p.md)
- [<(_:_:)](combine/subscribers/demand/_(_:_:)-1wuod.md)
- [<(_:_:)](combine/subscribers/demand/_(_:_:)-ciby.md)
- [<(_:_:)](combine/subscribers/demand/_(_:_:)-8nf1g.md)
- [<=(_:_:)](combine/subscribers/demand/_=(_:_:)-5f62z.md)
- [<=(_:_:)](combine/subscribers/demand/_=(_:_:)-2otvi.md)
- [<=(_:_:)](combine/subscribers/demand/_=(_:_:)-9cywv.md)
- [>(_:_:)](combine/subscribers/demand/_(_:_:)-35p6f.md)
- [>(_:_:)](combine/subscribers/demand/_(_:_:)-4k1xp.md)
- [>(_:_:)](combine/subscribers/demand/_(_:_:)-74yle.md)
- [>=(_:_:)](combine/subscribers/demand/_=(_:_:)-6lv9s.md)
- [>=(_:_:)](combine/subscribers/demand/_=(_:_:)-28c1e.md)
- [>=(_:_:)](combine/subscribers/demand/_=(_:_:)-5xnt.md)
