---
title: "<=(_:_:)"
framework: combine
role: symbol
role_heading: Operator
path: "combine/subscribers/demand/_=(_:_:)-5f62z"
---

# <=(_:_:)

Returns a Boolean value that indicates a given number of elements is less than or equal the maximum specified by the demand.

## Declaration

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

## Discussion

Discussion If rhs is .unlimited, then the result is always true. Otherwise, the operator compares the demand’s max value to lhs.

## See Also

### Comparing demands

- [==(_:_:)](combine/subscribers/demand/==(_:_:)-4oy8i.md)
- [==(_:_:)](combine/subscribers/demand/==(_:_:)-7246z.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/_=(_:_:)-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)
