- iOS 12 Programming for Beginners
- Craig Clayton
- 95字
- 2021-07-02 15:04:51
Booleans
Booleans (bools) are referred to as logical because they can either be true or false. Use Booleans when you need to determine whether some logic is true or false. For example, did the user log in? This statement would either be true—yes they did, or false—no they did not. So, in Playgrounds, add true and false:

Now, we have covered all of the primary data types in Swift. Right now, we have no way to use these data types. Using the data is where variables and constants come into play.
推薦閱讀
- FreeSWITCH 1.2
- Django 2 by Example
- 走進物聯(lián)網(wǎng)
- Proxmox High Availability
- Go Web Scraping Quick Start Guide
- 通信原理及MATLAB/Simulink仿真
- Master Apache JMeter:From Load Testing to DevOps
- AIoT應(yīng)用開發(fā)與實踐
- 互聯(lián)網(wǎng)安全的40個智慧洞見(2016)
- 世界互聯(lián)網(wǎng)發(fā)展報告2021
- 智慧的物聯(lián)網(wǎng):感知中國和世界的技術(shù)
- 學術(shù)虛擬社區(qū)用戶社會化交互行為研究
- Telerik WPF Controls Tutorial
- Learning Dart
- 物聯(lián)網(wǎng)與無線傳感器網(wǎng)絡(luò)(第2版)