(if
test
consequent
alternative)
test. If its value is truish (that is,
anything but false), evaluate consequent
and return its value. If the value of test is false (#f), evaluate
and return alternative.
(when
test
exp1
exp2 ...
expn)
test. If it holds, evaluate
each expression in turn. Otherwise, do nothing.
(cond
(test1
consequents1)
(test2
consequents2)
...
(testn
consequentsn)
(else
alternative))
(and
exp1
exp2 ...
expn)
(or
exp1
exp2 ...
expn)
Copyright © 2007-2011 Janet Davis, Matthew Kluber, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials copyright by John David Stone and Henry Walker and used by permission.)
This material is based upon work partially supported by the National Science Foundation under Grant No. CCLI-0633090. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
This work is licensed under a
Creative Commons Attribution-NonCommercial 2.5 License
.