Answers for "swiftui else of .if statement"

3

swiftui if use

if expression {
	// statements
}
Posted by: Guest on March-18-2021
0

swift if statement

// check the number is positive or negative
let num = 15
var result = ""

if (num > 0) {
     result = "Positive Number"
}
else {
     result = "Negative Number"
}

print(result)
Posted by: Guest on May-08-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language