.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMDLHasParity

.. oe:function:: OEMDLHasParity

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEMDLHasParity(const OEMolBase& mol)
         bool OEMDLHasParity(const OEMCMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEMDLHasParity(mol: Union[OEGraphMol,OEQMol]) -> bool

   Checks for the availability of the MDL 'chiral' flag for a molecule.
   After reading from an MDL connection table this value is ``true``, and
   ``false`` if the molecule did not originate from an MDL file or if the 'chiral'
   flag has been cleared. Calling the :oe:func:`OEChem::OEMDLGetParity`
   function will return the actual on/off value of the 'chiral' flag from the MDL
   file header. After calling the :oe:func:`OEChem::OEMDLClearParity`
   this function will return ``false``.

   The :ref:`OEMCMolBase <OEChem_OEMCMolBase>` overload of this function checks the 'chiral' flag availability
   for the **active** conformer in the multi-conformer molecule.

   .. seealso::

      * :oe:func:`OEChem::OEMDLPerceiveParity` function
      * :oe:func:`OEChem::OEMDLSetParity` and :oe:func:`OEChem::OEMDLGetParity` functions
      * :oe:func:`OEChem::OEMDLClearParity` function
