[ns] help! Why show me the error info ?

vap9999 gcguang at gmail.com
Mon Feb 23 15:36:13 PST 2009


Here is my piece of code: 

	if { ( [info exist flowEF_$link] && $flowEF_$link != "" )  ||  ( [info
exists flowBE_$link] && $flowBE_$link != "" )} { ......}


The error info is following : 

ns: flowstats E1C1: syntax error in expression " ( [info exist flowEF_$link]
&& $flowEF_$link != "" )  ||  (...": looking for close parenthesis
    ("if" test expression)
    while compiling
"if { ( [info exist flowEF_$link] && $flowEF_$link != "" )  ||  ( [info
exists flowBE_$link] && $flowBE_$link != "" )} {

                set bdepEF_$link [$flowEF..."
    (compiling body of proc "flowstats", line 13)



I couldnot find where is the syntax error. Someone knows? 

Thanks 
-- 
View this message in context: http://www.nabble.com/help%21-Why-show-me-the-error-info---tp22172700p22172700.html
Sent from the ns-users mailing list archive at Nabble.com.



More information about the Ns-users mailing list