marqdo

布尔逻辑ok

keywords/布尔逻辑.mq.md

Structure

fn · h1main
comment

关键字:,以及 / /

bind `a` = True
bind `b` = False
branch
arm`a` and not `b`
call> 打印 内容=通过
armelse
call> 打印 内容=失败
bind `probe` = 1
branch
armNone
call> 打印 内容=空为真
armelse
call> 打印 内容=空为假
Functions
Variables
  • a bool
    True
  • b bool
    False
  • probe int
    1

Execution

通过 空为假

Source

---
title: 布尔与逻辑
description: 真 / 假 / 空 与 且 / 或 / 非
---

# main

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

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

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

**`probe` = 1**

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

Variable