Hi,
I'm a newbie in Tcl. I want to return the value of node1 & node2 on screen by a for-loop. But I don't really know how to manage this...
set ns [new Simulator]
set node1 "ok1"
set node2 "ok2"
...
for {set i 1} {$i <= 1} {incr i} {
set clientnode "node"
append clientnode $i
puts $clientnode
}
$ns run
This returns "node1" instead of "ok1".
Thx in advance
I'm a newbie in Tcl. I want to return the value of node1 & node2 on screen by a for-loop. But I don't really know how to manage this...
set ns [new Simulator]
set node1 "ok1"
set node2 "ok2"
...
for {set i 1} {$i <= 1} {incr i} {
set clientnode "node"
append clientnode $i
puts $clientnode
}
$ns run
This returns "node1" instead of "ok1".
Thx in advance