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

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

主站蜘蛛池模板: 咸丰县| 秭归县| 孝义市| 吉木萨尔县| 平安县| 浦江县| 洪湖市| 普兰县| 托克逊县| 五大连池市| 喀什市| 建宁县| 蓝田县| 杭锦后旗| 调兵山市| 乐业县| 华宁县| 尚义县| 南充市| 岑巩县| 修文县| 北宁市| 平顶山市| 沙雅县| 乡城县| 浠水县| 顺义区| 招远市| 娱乐| 凭祥市| 沂水县| 湖南省| 闽清县| 高邮市| 长春市| 治县。| 江华| 舟山市| 闽侯县| 桐梓县| 景东|