官术网_书友最值得收藏!

if

Swift provides if to define conditional statements. It executes a set of statements only if the condition statement is true. For instance, in the following example, the print statement will be executed because anEmptyString is empty:

var anEmptyString = "" 
if anEmptyString.isEmpty {
print("An empty String")
} else {
// String is not empty.
}
主站蜘蛛池模板: 进贤县| 三台县| 双柏县| 静海县| 靖边县| 武汉市| 罗江县| 遂川县| 汶川县| 波密县| 西青区| 霍州市| 霍林郭勒市| 简阳市| 色达县| 米泉市| 阿坝县| 铜川市| 四平市| 姜堰市| 淮北市| 乌拉特前旗| 铁力市| 清河县| 永胜县| 泗洪县| 石台县| 宁蒗| 五华县| 高碑店市| 崇仁县| 昭觉县| 思茅市| 深圳市| 芒康县| 南皮县| 娱乐| 万山特区| 乌鲁木齐县| 静乐县| 哈密市|