swift if or/and statement like python
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
Yes.
if (a > 0 && i == j || f < 3){
//do something
}
You should probably do some reading on the basics of Swift before jumping in. If statements are covered in there.