I'm working through the Swift tutorial and at one point, an if condition is evaluated where a comma ,
separates two conditions. Is this the same like an AND
operator? As in:
var a = 3
var b = 6
var c = 9
var d = 15
if a < b && d > c {
print("yes")
}
if a < b, d > c {
print("yes")
}
Both cases return yes
.