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

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.

主站蜘蛛池模板: 扎赉特旗| 荔波县| 盈江县| 台安县| 高密市| 睢宁县| 上虞市| 六安市| 察哈| 隆回县| 五常市| 沙洋县| 徐州市| 温泉县| 颍上县| 榕江县| 万源市| 兴隆县| 札达县| 永泰县| 平远县| 龙门县| 武乡县| 迁安市| 肇庆市| 中方县| 夏河县| 阿图什市| 金湖县| 察雅县| 通河县| 云龙县| 大埔县| 诏安县| 和龙市| 唐河县| 秭归县| 隆子县| 巴中市| 渭南市| 青铜峡市|