---
title: "buildEither(second:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/axismarkbuilder/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<T1, T2>(second: T2) -> BuilderConditional<T1, T2> where T1 : AxisMark, T2 : AxisMark
```
