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

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.

主站蜘蛛池模板: 登封市| 衡水市| 洪洞县| 白城市| 七台河市| 汪清县| 永顺县| 康保县| 台江县| 肇东市| 九寨沟县| 宝清县| 兰州市| 常州市| 平顶山市| 图片| 西充县| 根河市| 恭城| 耒阳市| 阿克苏市| 靖州| 应用必备| 沭阳县| 甘南县| 霸州市| 庄河市| 崇仁县| 仁化县| 甘孜县| 老河口市| 广水市| 应城市| 治多县| 汤阴县| 绍兴县| 临漳县| 温宿县| 措勤县| 个旧市| 仙居县|