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

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.
}
主站蜘蛛池模板: 柘城县| 威信县| 富民县| 苗栗县| 武清区| 临猗县| 玉林市| 临邑县| 忻城县| 宁海县| 宾川县| 余姚市| 舟山市| 合肥市| 崇阳县| 宝兴县| 疏勒县| 延津县| 平度市| 遵义市| 师宗县| 清徐县| 石台县| 云梦县| 新蔡县| 兴国县| 中山市| 临颍县| 抚州市| 瓦房店市| 德兴市| 大余县| 昔阳县| 原平市| 崇左市| 舒城县| 长丰县| 思茅市| 天祝| 玉林市| 黔东|