if condition {
//do X
} elseif otherCondition {
//do Y
} else { //do Z
}
Switch Statement
switch someVariable {
case 1:
//do X
case 2:
//do X
default:
//do X
}
Loops
for variable in low...high {
} for fruit in fruitBasket { //do somethin
for item in array {
for i in 0...4 { //do something else }
} for i in 0..<4 {//do another thing }
while condition {
}