Page 1 of 1

Bug - can someone confirm if this line of code works ?

Posted: Thu Jul 23, 2009 11:02 am
by davidw
Maybe i am missing something....

But when I run this :-

:foreach i in={/interface find} do={:put [/interface get $i name]}

I get this error

interrupted
invalid item number

V3.24

Re: Bug - can someone confirm if this line of code works ?

Posted: Thu Jul 23, 2009 11:06 am
by mrz
Correct syntax is
:foreach i in=[/interface find] do={:put [/interface get $i name]}