Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Logical Operators Swift

// logical AND
print(true && true)      // true
print(true && false)     // false

// logical OR
print(true || false)      // true

// logical NOT
print(!true)                  // false
Source by docs.swift.org #
 
PREVIOUS NEXT
Tagged: #Logical #Operators #Swift
ADD COMMENT
Topic
Name
1+2 =