---
title: "ABSearchElementMatchesRecord(_:_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/absearchelementmatchesrecord(_:_:)"
---

# ABSearchElementMatchesRecord(_:_:)

Tests whether or not a record matches a search element.

## Declaration

```swift
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

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

## See Also

### Search Elements

- [ABCopyArrayOfMatchingRecords(_:_:)](addressbook/abcopyarrayofmatchingrecords(_:_:).md)
- [ABSearchElementCreateWithConjunction(_:_:)](addressbook/absearchelementcreatewithconjunction(_:_:).md)
