and

AutoCad AutoLISP Functions

 
and
 
 
 

Returns the logical AND of the supplied arguments

(and [expr ...])

Arguments

expr

Any expression.

Return Values

Nil, if any of the expressions evaluate to nil; otherwise T. If and is issued without arguments, it returns T.

Examples

Command: (setq a 103 b nil c "string")

"string"

Command: (and 1.4 a c)

T

Command: (and 1.4 a b c)

nil