---
title: "buildEither(second:)"
framework: mapkit
role: symbol
role_heading: Type Method
path: "mapkit/mapcontentbuilder/buildeither(second:)"
---

# buildEither(second:)

Compares content in a multistatement closure, resulting in use of the conditional content if the second argument you provide evaluates to true.

## Declaration

```swift
static func buildEither<TrueContent, FalseContent>(second: FalseContent) -> _ConditionalMapContent<TrueContent, FalseContent> where TrueContent : MapContent, FalseContent : MapContent
```

## Parameters

- `second`: The content that represents the false content element to compare against.

## Return Value

Return Value Returns the conditional map content that meets the conditions the content builder expresses.

## See Also

### Conditionally building map content

- [buildEither(first:)](mapkit/mapcontentbuilder/buildeither(first:).md)
- [buildExpression(_:)](mapkit/mapcontentbuilder/buildexpression(_:).md)
- [buildIf(_:)](mapkit/mapcontentbuilder/buildif(_:).md)
- [buildLimitedAvailability(_:)](mapkit/mapcontentbuilder/buildlimitedavailability(_:).md)
