|
Slide 8.c: Basic functions Slide 8.e: How to write functions Home |
|
COND
COND looks like this:
(COND (condition1 result1) (condition2 result2) ... (T resultN))The value returned by
COND is computed as follows:
condition1 is true (not NIL), then return result1;
condition2 is true then return result2; resultN.
COND is undefined.
For this reason, T is usually used as the final condition.
| READ: | |
|---|---|
null is true if its argument is ( ), and otherwise is false.
(READ).