or

AutoCad AutoLISP Functions

 
or
 
 
 

Returns the logical OR of a list of expressions

(or [expr...]) 

The or function evaluates the expressions from left to right, looking for a non-nil expression.

Arguments

expr

The expressions to be evaluated.

Return Values

T, if a non-nil expression is found; otherwise nil, if all of the expressions are nil or no arguments are supplied.

Note that or accepts an atom as an argument and returns T if one is supplied.

Examples

Command: (or nil 45 '())

T

Command: (or nil '())

nil