.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMDLSetParity

.. oe:function:: OEMDLSetParity

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

      .. oe:api::

         bool OEMDLSetParity(OEMolBase& mol, bool value)
         bool OEMDLSetParity(OEMCMolBase& mol, bool value)

   .. oe:language:: python

      .. oe:api:: python

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

   Sets the MDL 'chiral' flag status for a molecule to the passed value.
   Setting the value to ``true`` implies setting the chiral flag 'on' and indicates
   absolute stereochemistry for any marked stereocenters. :oe:func:`OEChem::OEMDLHasParity`
   will return true after setting a value via this function, and
   :oe:func:`OEChem::OEMDLGetParity` will return the value.
   :oe:func:`OEChem::OEMDLClearParity` will clear the property from the molecule.

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

  .. seealso::

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