From: Bennion, Brian (Bennion1_at_llnl.gov)
Date: Fri Jul 05 2013 - 15:54:16 CDT

Hello,

At some level this question is a tcl and vmd syntax issue.

set 1 [atomselect $loop1 "resname OBDN and (name O34 or name O35)"]
set 2 [atomselect $loop1 " resname I61 and name O9"]
set 3 [atomselect $loop1 " resname hlo0 and (name O14 or name O17)"]

foreach x { 1 2 3 } {
      if { [$x list ] != {} } {
           do something
     }
}

The error is: invalid command name "1"

I am just trying to check to make sure the atomselection actually contains something before I operate on it.

Brian