Nov 18, 2006 #1 Thodd Technical User Oct 21, 2006 27 BE Does anybody know how I can pass a value from a variable? for {set i 0} {$i < 3} {incr i} { if {$i != 0} { "BGP {$i}" } } proc BGP {x} { puts $x } my compiler says "BGP {$i}" is an invalid command... what is wrong? thx
Does anybody know how I can pass a value from a variable? for {set i 0} {$i < 3} {incr i} { if {$i != 0} { "BGP {$i}" } } proc BGP {x} { puts $x } my compiler says "BGP {$i}" is an invalid command... what is wrong? thx
Nov 19, 2006 #2 antee Programmer Nov 19, 2006 1 CN why not use if {$i != 0} { BGP $i } Upvote 0 Downvote
Nov 19, 2006 Thread starter #3 Thodd Technical User Oct 21, 2006 27 BE hey, thanks a lot! Upvote 0 Downvote