IUBio GIL .. BIOSCI/Bionet News .. Biosequences .. Software .. FTP

conditional includes

John D. Barton John.Barton at POBOX.COM
Tue Jan 7 14:47:12 EST 1997


Is it possible to get X-PLOR (3.843 or later) to do conditional
includes?  When I use code like

eval ($count = 1)
eval ($filename = "basename_" + encode ($count) + ".pdb")
if ($count = 1) then
    coor @first.pdb
else
    coor @$filename
end if

X-PLOR exits with a message that there is an "error opening file
$filename" and "Error accessing file".  If I re-write it to take the
variable reference out of the "else" portion of the conditional, I get
the same problem (the files for later iterations are written later in
the loop).  As an interim solution, I've removed the conditional and
created a symbolic link from first.pdb to basename_1.pdb, but I would
prefer a solution internal to X-PLOR.

Thanks,
John Barton

--
/|  John D. Barton
\|  Department of Biochemistry and Molecular Biophysics
/|> Washington University School of Medicine
\|> email: John.Barton at pobox.com





More information about the X-plor mailing list

Send comments to us at archive@iubioarchive.bio.net