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

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.

主站蜘蛛池模板: 荃湾区| 维西| 淅川县| 诏安县| 华宁县| 道真| 吉木乃县| 青冈县| 武安市| 出国| 南投市| 田东县| 龙海市| 乌兰县| 临沧市| 荔浦县| 尚志市| 商南县| 镇平县| 万山特区| 吉林省| 西和县| 南漳县| 罗定市| 三原县| 莆田市| 永胜县| 工布江达县| 枝江市| 青铜峡市| 大丰市| 封开县| 阿克苏市| 敖汉旗| 长春市| 大兴区| 黎城县| 准格尔旗| 庆安县| 应用必备| 阜平县|