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

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.
}
主站蜘蛛池模板: 台南县| 西乡县| 卢湾区| 大同市| 五大连池市| 望奎县| 清远市| 神农架林区| 雷波县| 潼南县| 崇礼县| 安新县| 湖北省| 广丰县| 宁河县| 炉霍县| 龙岩市| 右玉县| 江城| 河池市| 东丰县| 大埔区| 永新县| 温泉县| 宜都市| 荣成市| 安多县| 于都县| 台北县| 宣恩县| 钟祥市| 西华县| 安岳县| 达孜县| 雅江县| 岑溪市| 翁源县| 桑植县| 海口市| 大渡口区| 宿迁市|