"missing operator at _@_ in expression" for if statement

From: Simon Kit Sang Chu (simoncks1994_at_gmail.com)
Date: Mon Jul 27 2015 - 19:39:51 CDT

Hi everyone,

I am a new user and I am writing a script -

if [expr $i == 0]{
set ref_sel [ $sel_prot ]
} else {
set M [measure fit $sel_prot $ref_sel]
$sel_prot move $M
}

However, there is an error message -

missing operator at _@_
in expression "1_@_{"

Anyone has experienced this before? Mind if you point out how to correct it?

Thanks,
Simon

This archive was generated by hypermail 2.1.6 : Tue Dec 27 2016 - 23:21:15 CST