- 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 |
推薦閱讀
- C# 7 and .NET Core Cookbook
- Learn Blockchain Programming with JavaScript
- Getting Started with ResearchKit
- 大學(xué)計(jì)算機(jī)基礎(chǔ)(第2版)(微課版)
- 概率成形編碼調(diào)制技術(shù)理論及應(yīng)用
- Java 9模塊化開發(fā):核心原則與實(shí)踐
- C# 8.0核心技術(shù)指南(原書第8版)
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- 智能搜索和推薦系統(tǒng):原理、算法與應(yīng)用
- 玩轉(zhuǎn).NET Micro Framework移植:基于STM32F10x處理器
- Julia數(shù)據(jù)科學(xué)應(yīng)用
- Tableau Dashboard Cookbook
- SQL Server實(shí)例教程(2008版)
- C語言程序設(shè)計(jì)教程
- Dart:Scalable Application Development