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

# ABSearchElementCreateWithConjunction(_:_:)

Returns a compound search element created by combiningthe search elements in an array with the given conjunction.

```
func ABSearchElementCreateWithConjunction(_ conjunction: ABSearchConjunction, _ childrenSearchElement: CFArray!) -> Unmanaged<ABSearchElementRef>!
```

## Parameters

`conjunction`

The conjunction used to join the search elements in `children`. Can be either [`kABSearchAnd`](/documentation/AddressBook/kABSearchAnd) or [`kABSearchOr`](/documentation/AddressBook/kABSearchOr).

`childrenSearchElement`

An array containing ABSearchElement objects to be joined using `conjunction`. If `NULL` this function raises an exception.

## Return Value

A new compound searchelement joining the search elements in `children` using `conjunction`.You are responsible for releasing this object.

---

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)