You can use
&&
for logical and
||
for logical or
so you can do
if a > 0 && i == j || f < 3 {
...
}
see here
https://developer.apple.com/library/ios/documentation/swift/conceptual/Swift_Programming_Language/BasicOperators.html
You can use
&&
for logical and
||
for logical or
so you can do
if a > 0 && i == j || f < 3 {
...
}
see here
https://developer.apple.com/library/ios/documentation/swift/conceptual/Swift_Programming_Language/BasicOperators.html