Write an If-Else statement

 Problem

I want to write an if-else conditional statement.



 Recipe


// Set a boolean variable
let swiftIsCool = true

if swiftIsCool {
	print("Of course it is!")
}
else {
	print("Ooops")
}
				

Heard the news?

The Swift Cookbook for Swift 3 is at last here! For iBooks, Kindle and Paperback.
Hurry up - and Check it out! ;-)

 

 Playground