Racket Libraries
5.1 双 and 􏿴
5.2 􏻿
5.3 􏿰
5.4 􏶃
5.5 􏷂
5.6 􏶿
5.7 
5.8 
5.9 􏺃
5.10 
5.11 Conditionals
5.12 
5.13 
5.11 Conditionals
On this page:
5.11.1 丫,􏸣、􏸟
5.11.2 并、戈
5.11.3 当、肖,夬
5.11.4 
5.11.5 References
􏸣
􏸟
8.16

5.11 ConditionalsπŸ”—

5.11.1 丫,􏸣、􏸟πŸ”—

🐘 􏸞

ideograph

  connotation : if
  originates from :
imagine a data flow that is importing in, and there are two paths it can be exported out.
􏸣 : +
ideograph

  connotation : when
for the data flow case of , imagine as a barrier which has blocked one direction of the export paths, thus the other export path is extended.
􏸟 : 􏸣 +
ideograph

  connotation : unless
(􏸟 a b1 ...) is short for (􏸣 ( a) b1 ...).

Examples:
> ( (= 1 1) 'equal 'unequal)

'equal

> (􏸣 (= 1 1) 'equal)

'equal

> (􏸟 (= 1 2) 'unequal)

'unequal

5.11.2 并、戈πŸ”—

ideograph

  connotation : and
  originates from :
  originally means : and
simplified from 𠀤 in ancient chinese, means merge two or more than two objects as one, stands for and in Ming.
ideograph

  connotation : or
  originates from :
  originally means : or
simplified from , which means or in modern chinese.

Examples:
> ( 1 2 3)

3

> ( 1 2 3)

1

> ( #t #t #f)

#f

> ( #f #f #t)

#t

5.11.3 当、肖,夬πŸ”—

ideograph

  connotation : conditionals
  originates from :
  originally means : when, on condition of
ideograph

  connotation : case
  originates from :
  originally means : resemble, case
ideograph

  connotation : else
  originates from :
  originally means : broken, unfilled position, absent
simplified from 缺/决 in ancient chinese, means absent/burst, stands for when no conditions or cases take effect in Ming. . Imagine that the data flow is importing in, lots of conditions and cases are implemented as export paths, is a breaking point for data to export when no valid conditions and cases are effective.

Examples:
> (
    [(􏻛? 0) (displayln "positive number")]
    [(􏻛? 0) (displayln "negative number")]
    [ (displayln "neither positive or negative number")])

neither positive or negative number

> ( (+ 1 1)
    [(1) (displayln "result is 1")]
    [(2) (displayln "result is 2")]
    [ (displayln "result is neither 1 or 2")])

result is 2

5.11.4 πŸ”—

🐘 𥟍

ideograph

  connotation : not
  originates from :
  originally means : not

Examples:
> ( 1)

#f

> ((𥟍 𥥪?) 1)

#t

5.11.5 ReferencesπŸ”—

transformer

 :  = if

transformer

􏸣 : 􏸣 = when

transformer

􏸟 : 􏸟 = unless

transformer

 :  = and

transformer

 :  = or

transformer

 :  = case

transformer

 :  = cond

transformer

 :  = else

transformer

 :  = not