Use Python blocks!

Something like that:
        if (count_atoms nt) == 0
        then cmd.delete("nt")


if cmd.count_atoms("nt") == 0: \
   cmd.delete("nt")

Note the explicit use of "continuation" lines via backslashes.   This ensures 
that PyMOL hands over both lines to the Python interpreter as a single block.

Cheers,
Warren

It's exactly what I want.
I should learn Python to enhance my PyMol knowledge.

Thanks

Hello,
Is there a way to use test commands in pymol scripting language ?

Something like that:
        if (count_atoms nt) == 0
        then cmd.delete("nt")

Thanks

--
Sébastien Moretti
http://www.igs.cnrs-mrs.fr/
CNRS - IGS
31 chemin Joseph Aiguier
13402 Marseille cedex

Reply via email to