Jika lagi jika dan lain statmen dalam bahasa Swift

var action: String
var person = "hater"

if person == "hater" {
    action = "hate"
} else if person == "player" {
    action = "play"
} else {
    action = "cruise"
}
MUHAMMAD ZEESHAN