marqdo

布尔与逻辑ok

keywords/布尔逻辑.mq.md

文档

main

说明

关键字:真、假、空,以及 且 / 或 / 非。

`a` = 真
`b` = 假
  1. a 且 非 b
    > 打印 内容=通过
  2. else
    > 打印 内容=失败
`probe` = 1
  1. 空
    > 打印 内容=空为真
  2. else
    > 打印 内容=空为假
Functions
Variables
  • a bool
    True
  • b bool
    False
  • description text
    真 / 假 / 空 与 且 / 或 / 非
  • markup text
    occlusion
  • probe int
    1
  • title text
    布尔与逻辑
可执行知识(辅助)

运行与结果

通过 空为假
完整源码
---
markup: occlusion
title: 布尔与逻辑
description: 真 / 假 / 空 与 且 / 或 / 非
---

# main

关键字:`真`、`假`、`空`,以及 `且` / `或` / `非`。

**`a` = 真**
**`b` = 假**

1. `a` 且 非 `b`
  > 打印 内容=通过
2. *
  > 打印 内容=失败

**`probe` = 1**

1. 空
  > 打印 内容=空为真
2. *
  > 打印 内容=空为假

Variable