- Swift Functional Programming(Second Edition)
- Dr. Fatih Nayebi
- 56字
- 2021-07-02 23:54:26
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.
}
推薦閱讀
- 數據分析實戰:基于EXCEL和SPSS系列工具的實踐
- 數據庫原理及應用教程(第4版)(微課版)
- 大數據導論
- Libgdx Cross/platform Game Development Cookbook
- 大話Oracle Grid:云時代的RAC
- Python金融實戰
- Spark大數據編程實用教程
- LabVIEW 完全自學手冊
- 深入淺出 Hyperscan:高性能正則表達式算法原理與設計
- Oracle數據庫管理、開發與實踐
- 數據庫應用系統技術
- Hands-On System Programming with C++
- 數據庫原理與設計實驗教程(MySQL版)
- 從Lucene到Elasticsearch:全文檢索實戰
- AI Crash Course