Primary: [Front Door] [Syllabus] [Assignments] [Labs] [Readings]
References: [A-Z] [Primary] [Scheme Report (R5RS)] [Scheme Reference]
Related Courses: [CSC151 2007S (Rebelsky)] [CSC151 2008S (Davis)] | [CSC151 2008F (Davis)] [CSC151 2008F (Weinman)] | [CSC151 2009S (Davis)] [CSC151 2009S (Weinman)]
(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)
Primary: [Front Door] [Syllabus] [Assignments] [Labs] [Readings]
References: [A-Z] [Primary] [Scheme Report (R5RS)] [Scheme Reference]
Related Courses: [CSC151 2007S (Rebelsky)] [CSC151 2008S (Davis)] | [CSC151 2008F (Davis)] [CSC151 2008F (Weinman)] | [CSC151 2009S (Davis)] [CSC151 2009S (Weinman)]
Copyright (c) 2007-2009 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. To view a copy of this
license, visit http://creativecommons.org/licenses/by-nc/2.5/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.