marqdo

Booleans and logicok

keywords/bool-logic.mq.md

文档

main

说明

Keywords: True, False, None, and and / or / not.

`a` = True
`b` = False
  1. a and not b
    > print text=ok
  2. else
    > print text=fail
`probe` = 1
  1. None
    > print text=none-truthy
  2. else
    > print text=none-falsy
Functions
Variables
  • a bool
    True
  • b bool
    False
  • description text
    True / False / None and and / or / not
  • markup text
    occlusion
  • probe int
    1
  • title text
    Booleans and logic
可执行知识(辅助)

运行与结果

ok none-falsy
完整源码
---
markup: occlusion
title: Booleans and logic
description: True / False / None and and / or / not
---

# main

Keywords: `True`, `False`, `None`, and `and` / `or` / `not`.

**`a` = True**
**`b` = False**

1. `a` and not `b`
  > print text=ok
2. *
  > print text=fail

**`probe` = 1**

1. None
  > print text=none-truthy
2. *
  > print text=none-falsy

Variable