This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / String Manipulation  /

  • 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.



    There is no symbol named factor.