marqdo

bool-logicok

keywords/bool-logic.mq.md

Structure

fn · h1main
comment

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

bind `a` = True
bind `b` = False
branch
arm`a` and not `b`
call> print text=ok
armelse
call> print text=fail
bind `probe` = 1
branch
armNone
call> print text=none-truthy
armelse
call> print text=none-falsy
Functions
Variables
  • a bool
    True
  • b bool
    False
  • probe int
    1

Execution

ok none-falsy

Source

---
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