Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

if else if and else statments in swift language

var action: String
var person = "hater"

if person == "hater" {
    action = "hate"
} else if person == "player" {
    action = "play"
} else {
    action = "cruise"
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #statments #swift #language
ADD COMMENT
Topic
Name
1+8 =