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

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.
}
主站蜘蛛池模板: 威信县| 安化县| 萝北县| 三江| 西贡区| 电白县| 藁城市| 原阳县| 尚志市| 雷山县| 新晃| 泰兴市| 监利县| 安塞县| 新昌县| 安多县| 阜平县| 蒙城县| 株洲市| 石棉县| 玉山县| 衡东县| 通化县| 东光县| 麻阳| 罗江县| 屯昌县| 仙桃市| 宁阳县| 修水县| 永定县| 大余县| 英超| 通海县| 江门市| 喜德县| 东丰县| 保山市| 福安市| 晴隆县| 讷河市|