---
title: "appendInterpolation(_:format:privacy:)"
framework: os
role: symbol
role_heading: Instance Method
path: "os/osloginterpolation/appendinterpolation(_:format:privacy:)-686xc"
---

# appendInterpolation(_:format:privacy:)

Adds a Boolean argument to the message.

## Declaration

```swift
mutating func appendInterpolation(_ boolean: @autoclosure @escaping () -> Bool, format: OSLogBoolFormat = .truth, privacy: OSLogPrivacy = .auto)
```

## Parameters

- `boolean`: The Boolean value to add to the message.
- `format`: The format to apply to the Boolean value. You format Boolean values as either true/false or yes/no strings. If you don’t specify this parameter, the default format uses true/false strings. For more information, see doc://com.apple.os/documentation/os/OSLogBoolFormat.
- `privacy`: The privacy level of the information. If you don’t specify this parameter, the system uses the default rules to determine whether to show the information.

## Discussion

Discussion Don’t call this function directly. The system calls it automatically when interpolating values of this type. When specifying the value in your string, you may include any of the indicated parameters to change the default presentation of that value.
