<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/SIMD8/._=(_:_:)-4ibxs",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s5SIMD8VsSfRszrlE3zleoiys8SIMDMaskVyABys5Int32VGGABySfG_SftFZ"
  },
  "title" : ".<=(_:_:)"
}
-->

# .<=(_:_:)

Pointwise compare less than or equal to.

```
static func .<= (a: SIMD8<Scalar>, b: Scalar) -> SIMDMask<SIMD8<Scalar>.MaskStorage>
```

## Discussion

Each lane of the result is true if that lane of a is less than or equal to b,
and false otherwise.

Equivalent to:

```
var result = SIMDMask<MaskStorage>()
for i in 0..<8 {
  result[i] = (a[i] <= b)
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)