MoleculeQ

MoleculeQ[mol]

returns True if mol is a valid Molecule expression, and False otherwise.

Examples

Basic Examples  (3)

Test whether an expression is a valid Molecule expression:

A molecule with improper valence will issue a message, but is still MoleculeQ:

Adding a positive charge to the oxygen atom will fix the message:

Using an invalid bond type will not be MoleculeQ:

Introduced in 2019
 (12.0)