---
title: "matchesRecord(_:)"
framework: addressbook
role: symbol
role_heading: Instance Method
path: "addressbook/absearchelement/matchesrecord(_:)"
---

# matchesRecord(_:)

Tests whether or not a record matches a search element.

## Declaration

```swift
func matchesRecord(_ record: ABRecord!) -> Bool
```

## Parameters

- `record`: The record to be tested against the search object.

## Return Value

Return Value true if the record argument satisfies the conditions in the search element; otherwise, false.

## Discussion

Discussion If record is nil, this method raises an exception.
