<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABSearchElementMatchesRecord(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABSearchElementMatchesRecord"
  },
  "title" : "ABSearchElementMatchesRecord(_:_:)"
}
-->

# ABSearchElementMatchesRecord(_:_:)

Tests whether or not a record matches a search element.

```
func ABSearchElementMatchesRecord(_ searchElement: ABSearchElementRef!, _ record: ABRecordRef!) -> Bool
```

## Parameters

`searchElement`

The search element containing the query you wish to test `record` with.

`record`

The record you wish to test.

## Return Value

Returns `true` ifthe `record` parameter satisfies theconditions in the `searchElement`, `false` otherwise.

## Discussion

---

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)