Bool

E427887

Bool is Swift’s built-in Boolean type used to represent truth values in conditional logic and control flow.

All labels observed (1)

Label Occurrences
Bool canonical 1

How this entity was disambiguated

Statements (45)

Predicate Object
instanceOf Boolean data type ⓘ
Swift primitive type ⓘ
bridgedFrom ObjC BOOL via Foundation ⓘ
cannotBeImplicitlyConvertedFrom Int ⓘ
NSNumber ⓘ
String ⓘ
cannotBeNil unless wrapped in Optional ⓘ
conformsTo Codable ⓘ
Equatable ⓘ
Hashable ⓘ
Sendable ⓘ
defaultValue false ⓘ
definedIn Swift programming language ⓘ
definedInModule Swift standard library ⓘ
hasPossibleValue false ⓘ
true ⓘ
introducedIn Swift 1.0 ⓘ
isCaseSensitive true ⓘ
isDocumentedAt https://developer.apple.com/documentation/swift/bool ⓘ
isGenericConstraintExample Equatable in Swift docs ⓘ
isKeyword true ⓘ
isMappedFrom Objective-C type BOOL ⓘ
isStruct true ⓘ
isThreadSafeValueType true ⓘ
isValueType true ⓘ
literalForm false ⓘ
true ⓘ
memoryRepresentation 1 bit conceptually ⓘ
represents truth values ⓘ
supportsOperator ! ⓘ
!= ⓘ
&& ⓘ
== ⓘ
|| ⓘ
usedFor conditional logic ⓘ
control flow ⓘ
usedIn Swift assertions ⓘ
Swift optionals unwrapping conditions ⓘ
Swift preconditions ⓘ
Swift ternary conditional operator ⓘ
usedInStatement for where clause ⓘ
guard ⓘ
if ⓘ
repeat-while ⓘ
while ⓘ

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.