NameQ
Details and Options
- You can test for classes of symbol names using abbreviated string patterns with metacharacters such as *, as specified in "Some General Notations and Conventions".
- NameQ tests names with a matching context alias by default. With ResolveContextAliasesFalse, only non-aliased matching names will be tested. »
Examples
open allclose allBasic Examples (2)
Test whether a string corresponds to a Symbol:
Test whether there are any symbols corresponding to a class of strings:
Options (1)
ResolveContextAliases (1)
NameQ resolves context aliases by default:
Use the ResolveContextAliases option to prevent alias resolution:
Only patterns that match the actual symbol name will give True with this option set to False:
Text
Wolfram Research (1988), NameQ, Wolfram Language function, https://reference.wolfram.com/language/ref/NameQ.html (updated 2021).
CMS
Wolfram Language. 1988. "NameQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/NameQ.html.
APA
Wolfram Language. (1988). NameQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NameQ.html