(and expression ...)
Apply the logical AND.
This function performs a logical AND to the expression that precedes it. If both statements return T (true), the and function returns T. If either or both of the statements returns nil (false) the and function returns nil.
Examples
Code | Returns |
---|---|
(setq d 9) (and (> d 12) (< d 13)) |
nil |
(setq d 12.25) (and (> d 12) (< d 13)) |
T |