- 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.
}
推薦閱讀
- 數據存儲架構與技術
- 大數據技術基礎
- 大數據可視化
- 從0到1:數據分析師養成寶典
- 大數據導論
- 數亦有道:Python數據科學指南
- Splunk智能運維實戰
- INSTANT Android Fragmentation Management How-to
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- SQL Server 2012實施與管理實戰指南
- 中文版Access 2007實例與操作
- The Natural Language Processing Workshop
- Scratch 2.0 Game Development HOTSHOT
- 智能與數據重構世界
- 區塊鏈應用開發指南:業務場景剖析與實戰