
atomic(?Term)

   Succeeds if Term is an atom, a number, or a string.



Arguments
   Term                Prolog term.

Type
   Type Testing

Description

	Used to test whether Term is an atomic term.
	This is the negation of compound/1.


Modes and Determinism
   atomic(?) is semidet

Fail Conditions
   Fails if Term is not an atom, a number or a string

Examples
   
Success:
    atomic(atom).
    atomic(1.4).
    atomic(3).
    atomic("Hello world").
    atomic([]).

Fail:
    atomic([1,3,3,6]).
    atomic(this(is,a,structure)).
    atomic(X).





See Also
   atom / 1, compound / 1, is_list / 1, is_array / 1, var / 1
