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
 
PREVIOUS NEXT
Tagged: #Logical #Operators #Swift
ADD COMMENT
Topic
Name
2+2 =