| Allegro CL version 6.2 Unrevised from 6.1 |
Arguments: (test-form {then then-form+ | thenret} {elseif else-test-form {then else-then-form+ | thenret}}* [else else-form+])
This form consists of a series of clauses introduced by the symbols
then
, elseif
,
else
, and thenret
.
First the predicate test-form is
evaluated.
If it is true,
the then-forms are evaluated, and the
value of the last such form is returned.
If test-form evaluates to nil
,
any remaining clauses are processed.
If no clauses remain, if*
returns nil
.
When a thenret
clause is
encountered no further evaluation takes place,
and the value of the most recently evaluated
test-form is returned.
When an elseif
clause is encountered,
the predicate else-test-form
is evaluated. If it is true,
the else-then-forms are evaluated,
and the value of the last such form is returned;
otherwise any remaining clauses are
processed. If no clauses remain, if*
returns nil
. And lastly,
when an else
clause is encountered, the
else-forms are evaluated,
and the value of the last such form is returned.
Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.
| Allegro CL version 6.2 Unrevised from 6.1 |