Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Swift if...else

let number = 10

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

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

print("This statement is always executed.")
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #Swift
ADD COMMENT
Topic
Name
4+7 =