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

# buildEither(first:)

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

## Declaration

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

## Parameters

- `first`: The content that represents the true 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(second:)](mapkit/mapcontentbuilder/buildeither(second:).md)
- [buildExpression(_:)](mapkit/mapcontentbuilder/buildexpression(_:).md)
- [buildIf(_:)](mapkit/mapcontentbuilder/buildif(_:).md)
- [buildLimitedAvailability(_:)](mapkit/mapcontentbuilder/buildlimitedavailability(_:).md)
