(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

 

Tell me about...

(~ number)

(boole function integer1 integer2 ...)

(not item)

(or statement ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language

 


Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved.