boundp

(boundp atom)

The boundp function tests if the specified atom has a value. It returns T if a value is bound to atom (term); otherwise, it returns nil.

Examples

: (setq x 32)

32

: (setq y nil)

nil

: (boundp 'x)

T

: (boundp 'y)

nil

: (boundp 32)

nil