vmd.molecule.exists

vmd.molecule.exists()

Check if a molecule ID is valid

Parameters:molid (int) – Molecule ID to query
Returns:(bool) True if molid is valid