Play audio slide show -- Keyboard shortcut: 'x'  Lecture overview -- Keyboard shortcut: 'u'  Previous page: Conditional expressions [Section] -- Keyboard shortcut: 'p'  Next page: Examples with <kbd>if</kbd> -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home      Name binding, Recursion, Iteration, and Continuations - slide 10 : 42

Conditional expressions

if and cond are special forms which evaluate their expressions according to the value of one or more boolean selectors

if and cond are not control structures when applied in the functional paradigm

(if bool-expr expr1 expr2)
(cond (bool-expr1 expr1)
      (bool-exprk exprk)
      (else exprk+1))
Go to exercise
HTML Header functions