It is possible to define in a custom atom list which atoms can be part of the structure at the specified location. If the type of the corresponding atom in the target molecular structure is a member of the list, it is considered a matching atom.
NOT lists can be used to specify atoms to be excluded in the search.
"Atom List" and "NOT List" can be reached from the Periodic Table's Periodic Table dialog.