Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / String Manipulation  /
NameQ

  • NameQ[" string "] yields True if there are any symbols whose names match the string pattern given, and yields False otherwise.
  • You can test for classes of symbol names using string patterns with metacharacters such as *, as specified in Section A.3.13.
  • See the Mathematica book: Section 2.6.12.
  • See also: Names.

    Further Examples

    Since Factor is a built-in function, NameQ returns a value of True.

    In[1]:=

    Out[1]=

    There is no symbol named factor.

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.