布尔逻辑ok
Structure
fn · h1main
comment
bind
`a` = Truebind
`b` = Falsebranch
arm
`a` and not `b`call
> 打印 内容=通过arm
elsecall
> 打印 内容=失败bind
`probe` = 1branch
arm
Nonecall
> 打印 内容=空为真arm
elsecall
> 打印 内容=空为假Functions
Variables
-
a boolTrueTrue
-
b boolFalseFalse
-
probe int11
Execution
通过
空为假
Source
--- title: 布尔与逻辑 description: 真 / 假 / 空 与 且 / 或 / 非 --- # main 关键字:`真`、`假`、`空`,以及 `且` / `或` / `非`。 **`a` = 真** **`b` = 假** 1. `a` 且 非 `b` > 打印 内容=通过 2. * > 打印 内容=失败 **`probe` = 1** 1. 空 > 打印 内容=空为真 2. * > 打印 内容=空为假
关键字:
真、假、空,以及且/或/非。