Swift - 07 - 布尔类型
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" let orangeAreYellowColor = true let appleIsBlue = false if orangeAreYellowColor { print("yes! The orange is Yellow Color.") } else { print("no! The orange is not Yellow") } let i = 1 if (i == 2) { print("i等于2"); } else { print("i等于\(i)") } // swift中是没有这种语法的 if i { } // 布尔类型其实说的就是对和错, true和false..