---
title: OSLogBoolFormat.answer
framework: os
role: symbol
role_heading: Case
path: os/oslogboolformat/answer
---

# OSLogBoolFormat.answer

An option to format Boolean values as yes or no strings.

## Declaration

```swift
case answer
```

## Discussion

Discussion This option formats a Boolean true value as YES and a Boolean false value as NO.

## See Also

### Getting the Boolean Format Options

- [OSLogBoolFormat.truth](os/oslogboolformat/truth.md)
