bool-logicok
Structure
fn · h1main
comment
bind
`a` = Truebind
`b` = Falsebranch
arm
`a` and not `b`call
> print text=okarm
elsecall
> print text=failbind
`probe` = 1branch
arm
Nonecall
> print text=none-truthyarm
elsecall
> print text=none-falsyFunctions
Variables
-
a boolTrueTrue
-
b boolFalseFalse
-
probe int11
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
Keywords:
True,False,None, andand/or/not.