<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriEvaluations",
  "identifier" : "/documentation/SiriEvaluations/SiriScenarioExpectationBuilder/buildEither(first:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Siri Evaluations"
    ],
    "preciseIdentifier" : "s:15SiriEvaluations0A26ScenarioExpectationBuilderO11buildEither5firstAC9ComponentVAG_tFZ"
  },
  "title" : "buildEither(first:)"
}
-->

# buildEither(first:)

Creates a component from the first branch of a conditional statement.

```
static func buildEither(first component: SiriScenarioExpectationBuilder.Component) -> SiriScenarioExpectationBuilder.Component
```

---

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)