---
title: "buildOptional(_:)"
framework: lightweightcoderequirements
role: symbol
role_heading: Type Method
path: "lightweightcoderequirements/processconstraintbuilder/buildoptional(_:)"
---

# buildOptional(_:)

Produces content for a conditional statement in a multi-statement closure when the condition is true and has no else option.

## Declaration

```swift
static func buildOptional(_ component: [any ProcessConstraint]?) -> [any ProcessConstraint]
```
