Verifies if a value is bound to a symbol
(boundp sym)
T if sym has a value bound to it. If no value is bound to sym, or if it has been bound to nil, boundp returns nil. If sym is an undefined symbol, it is automatically created and is bound to nil.
Command: (setq a 2 b nil)
nil
Command: (boundp 'a)
T
Command: (boundp 'b)
nil
The atoms-family function provides an alternative method of determining the existence of a symbol without automatically creating the symbol.
See Also
-
The atoms-family function.