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

# buildEither(first:)

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

## Declaration

```swift
static func buildEither<T1, T2>(first: T1) -> BuilderConditional<T1, T2> where T1 : AxisMark, T2 : AxisMark
```
