<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSLogBoolFormat/answer",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os15OSLogBoolFormatO6answeryA2CmF"
  },
  "title" : "OSLogBoolFormat.answer"
}
-->

# OSLogBoolFormat.answer

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

```
case answer
```

## Discussion

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

---

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)