<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MapContentBuilder/buildEither(second:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A14ContentBuilderV11buildEither6secondAA012_ConditionalaE0Vyxq_Gq__tAA0aE0RzAaIR_r0_lFZ"
  },
  "title" : "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.

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

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

---

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)