Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift if...else

let number = 10

if (number > 0) {
    print("Number is positive.")
}

else {
    print("Number is negative.")
}

print("This statement is always executed.")
 
PREVIOUS NEXT
Tagged: #Swift
ADD COMMENT
Topic
Name
5+7 =