[ns] is there any error?
Lloyd Wood
L.Wood@eim.surrey.ac.uk
Thu, 11 Jan 2001 09:37:49 +0000 (GMT)
On Thu, 11 Jan 2001 mahesh@cs.iitm.ernet.in wrote:
> i'm a new user of ns and tcl too. i'm hang up with an error.
>
> if [expr[$link12 up?] == up] then puts "something"
You can't do that in Tcl. You could try:
if { expr[$link12 up?] == "up" } {
puts "something" ^ there _has_ to be a space here.
}
which is more likely to be syntactically correct. See a Tcl book...
> here i'm checking whether a link is up and if up i wanna do some
> thing. $link12 is an instance of link.
>
> sir, Is there any error in the above line.
I think the parser would tell you.
L.
<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>