- Kotlin Programming By Example
- Iyanu Adelekan
- 91字
- 2021-08-27 20:00:08
Boolean
The true and false logical truth values are represented by the Boolean type:
var t: Boolean = true
var f: Boolean = false
Boolean values are operated upon by the &&, ||, and ! logical operators:
Operator name |
Operator |
Description |
Operator type |
Conjunction |
&& |
Evaluates to true when two of its operands are true, otherwise evaluates to false. |
Binary |
Disjunction |
|| |
Evaluates to true when at least one operand is true, otherwise evaluates to false. |
Binary |
Negation |
! |
Inverts the value of its Boolean operand. |
Unary |
推薦閱讀
- MySQL數據庫管理實戰
- Visual FoxPro程序設計教程
- 實戰Java程序設計
- Julia機器學習核心編程:人人可用的高性能科學計算
- oreilly精品圖書:軟件開發者路線圖叢書(共8冊)
- Troubleshooting PostgreSQL
- SQL基礎教程(第2版)
- Learning OpenStack Networking(Neutron)(Second Edition)
- Mastering Akka
- Hands-On Neural Network Programming with C#
- Java圖像處理:基于OpenCV與JVM
- Emotional Intelligence for IT Professionals
- Web前端開發技術:HTML、CSS、JavaScript
- Spring Boot從入門到實戰
- Java服務端研發知識圖譜