---
title: "init(forConjunction:children:)"
framework: addressbook
role: symbol
role_heading: Initializer
path: "addressbook/absearchelement/init(forconjunction:children:)"
---

# init(forConjunction:children:)

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

## Declaration

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

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

## Discussion

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.
