.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEHasSDData

.. oe:function:: OEHasSDData

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

      .. oe:api::

         bool OEHasSDData(const OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   Determines whether a molecule has any SD data.

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

      .. oe:api::

         bool OEHasSDData(const OEMolBase& mol, const std::string& tag)

   .. oe:language:: python

      .. oe:api:: python

         OEHasSDData(mol: Union[OEGraphMol,OEMol,OEQMol], tag: str) -> bool

   Determines whether a molecule has SD data with a given tag.

   .. seealso::

      * :ref:`section_moltaggeddata_SD` section

   .. admonition:: Code Example

      * :ref:`section_example_oechem_sdfrename` example
      * :ref:`section_example_oechem_sdfilter` example
