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

# buildEither(second:)

Provides support for “if-else” statements in multi-statement closures, producing conditional content for the “else” branch.

## Declaration

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