另一种写法

控制流 / 条件语句 / if/else 语句

if latitude == 0 {
    location = "Equator"
} else if latitude == 90 {
    location = "north Pole"
} else if latitude == -90 {
    location = "south Pole"
} else {
    location = "not at the Equator or Pole"
}