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

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

主站蜘蛛池模板: 锦屏县| 余干县| 绥中县| 广南县| 丽水市| 通山县| 青浦区| 周宁县| 罗田县| 恩施市| 宝坻区| 贺州市| 阳谷县| 射阳县| 沭阳县| 玛沁县| 斗六市| 曲靖市| 封丘县| 县级市| 泉州市| 大厂| 武城县| 武功县| 金坛市| 古田县| 无棣县| 天峨县| 海晏县| 襄汾县| 卢湾区| 屯留县| 上虞市| 德化县| 云浮市| 扎囊县| 图木舒克市| 西林县| 天柱县| 枝江市| 驻马店市|