DOCUMENTATION CENTER SEARCH
Mathematica
>
Symbol Handling
>
Built-in
Mathematica
Symbol
Manipulating Symbols and Contexts by Name
Tutorials »
|
Names
See Also »
|
Atomic Elements of Expressions
Symbol Handling
More About »
NameQ
NameQ
["
string
"]
yields
True
if there are any symbols whose names match the string pattern given, and yields
False
otherwise.
MORE INFORMATION
You can test for classes of symbol names using abbreviated string patterns with metacharacters such as
*
, as specified in
Some General Notations and Conventions
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Test whether a string corresponds to a
Symbol
:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Test whether there are any symbols corresponding to a class of strings:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
SEE ALSO
Names
TUTORIALS
Manipulating Symbols and Contexts by Name
MORE ABOUT
Atomic Elements of Expressions
Symbol Handling
New in 1
© 2008 Wolfram Research, Inc.