atom
 
 
 

Verifies that an item is an atom

(atom item)

Arguments

item

Any AutoLISP element.

Some versions of LISP differ in their interpretation of atom, so be careful when converting from non-AutoLISP code.

Return Values

Nil if item is a list; otherwise T. Anything that is not a list is considered an atom.

Examples

Command: (setq a '(x y z))

(X Y Z)

Command: (setq b 'a)

A

Command: (atom 'a)

T

Command: (atom a)

nil

Command: (atom 'b)

T

Command: (atom b)

T

Command: (atom '(a b c))

nil