---
title: makeExpression()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/optional/makeexpression()
---

# makeExpression()

Creates an expression that represents this optional intent value.

## Declaration

```swift
func makeExpression() -> IntentValueExpression
```

## Return Value

Return Value An intent value expression representing this optional value.

## Discussion

Discussion This method handles both the .some and .none cases: For .none, it creates a pending expression that will resolve to a null value For .some, it delegates to the wrapped value’s expression creation
