Function cond
cond condition1 anObject1 [condition2 anObject2 ...] [elseObject]
Returns one of several possible values, depending on the boolean value
of several conditions.
- Parameters:
- condition1 -
A boolean value or a block whose execution results in a boolean value.
- anObject1 -
An object of any type, whose evaluation is returned if
condition1 evaluates to the true boolean value.
- elseObject -
An object of any type, whose evaluation is returned if none of the
conditions evaluated to true.
- Returns:
-
The result of evaluating the first of the object arguments whose condition
evaluated to true.
-
Report a bug or request new features
© 2002