<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABSearchElement/init(forConjunction:children:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:objc(cs)ABSearchElement(cm)searchElementForConjunction:children:"
  },
  "title" : "init(forConjunction:children:)"
}
-->

# init(forConjunction:children:)

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

```
init!(forConjunction conjuction: ABSearchConjunction, children: [Any]!)
```

## Parameters

`conjuction`

The logical operator with which to combine the search elements.

`children`

An array of search elements to be combined.

## Return Value

A compound search element, created by combining the given search elements with the given conjunction

## Discussion

The objects in the `children` array must be `ABSearchElement` objects. The conjunction can be `kABSearchAnd` or `kABSearchOr`. If `children` is `nil` or empty, this method raises an exception.

---

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)