Functions Documentation |
|
Name |
and |
Syntax |
(and exp1 exp2 ... expn) -> True/Nil |
Argument List |
exp1: an expression that evaluates to Nil or non-Nil
exp2 ... expn: optional expressions that each evaluate to Nil or non-Nil. |
Returns |
boolean: the result of anding all of the expressions |
Category |
logical operator
|
Description |
Returns True if all the expressions are not Nil otherwise returns Nil. |
Example |
(block (someCondition)
(setq someCondition True)
(and someCondition Nil)
)
This will return a Nil. |
Comment |
Logical functions are very important in if and while functions. |