# ``Swift/Bool``

## Topics

### Comparing Boolean Values

- ``Swift/Bool/==(_:_:)``
- ``Swift/Bool/!=(_:_:)``

### Transforming a Boolean

- ``Swift/Bool/toggle()``
- ``Swift/Bool/!(_:)``
- ``Swift/Bool/||(_:_:)``
- ``Swift/Bool/&&(_:_:)``

### Creating a Random Value

- ``Swift/Bool/random()``
- ``Swift/Bool/random(using:)``

### Describing a Boolean

- ``Swift/Bool/description``

### Inspecting a Boolean

- ``Swift/Bool/customMirror``
- ``Swift/Bool/customPlaygroundQuickLook``
- ``Swift/Bool/hash(into:)``

### Creating a Boolean From Another Value

- ``Swift/Bool/init(_:)-25sp9``
- ``Swift/Bool/init(_:)-83vgw``
- ``Swift/Bool/init(fromCxx:)``

### Encoding and Decoding

- ``Swift/Bool/init(from:)-99p2s``
- ``Swift/Bool/encode(to:)``

### Infrequently Used Intializers

- ``Swift/Bool/init()``
- ``Swift/Bool/init(booleanLiteral:)``

### Boolean Literals

- ``Swift/true``
- ``Swift/false``
