WLJS LogoWLJS Notebook

NameQ

NameQ["string"] yields True if there are any symbols whose names match the string pattern given, and yields False otherwise.

Examples

Check if a symbol exists:

NameQ["Sin"]
(* True *)

Check for a non-existent symbol:

NameQ["NonExistentSymbol"]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page