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

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.

主站蜘蛛池模板: 喜德县| 巫溪县| 郸城县| 六枝特区| 肥西县| 布拖县| 建宁县| 扶风县| 沅陵县| 鹤岗市| 中江县| 英吉沙县| 全南县| 那坡县| 邢台县| 巢湖市| 达州市| 原平市| 濉溪县| 宁化县| 宜城市| 丹凤县| 汕头市| 敦煌市| 凤山市| 德兴市| 广德县| 诸暨市| 万年县| 东丰县| 富蕴县| 青海省| 文山县| 谷城县| 辛集市| 邯郸县| 牟定县| 尖扎县| 当阳市| 桃源县| 疏附县|