Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Tuning & Debugging > Symbol Handling > NameQ >
Mathematica > Core Language > Package Development > Namespace Management > Symbol Handling > NameQ >

NameQ

NameQ
yields True if there are any symbols whose names match the string pattern given, and yields False otherwise.
Test whether a string corresponds to a Symbol:
Test whether there are any symbols corresponding to a class of strings:
Test whether a string corresponds to a Symbol:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Test whether there are any symbols corresponding to a class of strings:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF