MHasDescriptor

MHasDescriptor[ hexpr , descr ]
returns True if hexpr has the descriptor descr and False otherwize.
  • descr is typically a string corrsponding to a descriptor. Usual descriptors are "Label", "Id", "NextLevel", ...
  • MHasDescriptor is a low level key programming function for explorating the contents of hierarchical expressions in Molecula.
In[1]:=
Click for copyable input
Loads a sample atom:
In[2]:=
Click for copyable input
Out[2]=
Test if the atom has the descriptor "TemperatureFactor":
In[3]:=
Click for copyable input
Out[3]=
Test if the atom has the descriptor "Volume":
In[4]:=
Click for copyable input
Out[4]=