Hi if I do something like this /route ospf interface :if ( [ print count-only ] > 0 ) do { <something> } when I import the script (and it runs), the number of items in print count-only get printed as well. I tried :local A [print count-only] but still it prints it when the script it run Any one know how to stop that ? A
Use :if ([:len [find]] > 0) This should have the same result without printing to terminal. Cheers, Andrew On 2 Mar. 2017 11:28 pm, "Alex Samad" <alex@samad.com.au> wrote:
Hi
if I do something like this
/route ospf interface :if ( [ print count-only ] > 0 ) do { <something> }
when I import the script (and it runs), the number of items in print count-only get printed as well.
I tried
:local A [print count-only]
but still it prints it when the script it run
Any one know how to stop that ?
A _______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au
Great initial test looks good On 4 March 2017 at 01:49, Andrew Cox <andrew.cox@brightwifi.com> wrote:
Use
:if ([:len [find]] > 0)
This should have the same result without printing to terminal.
Cheers, Andrew
On 2 Mar. 2017 11:28 pm, "Alex Samad" <alex@samad.com.au> wrote:
Hi
if I do something like this
/route ospf interface :if ( [ print count-only ] > 0 ) do { <something> }
when I import the script (and it runs), the number of items in print count-only get printed as well.
I tried
:local A [print count-only]
but still it prints it when the script it run
Any one know how to stop that ?
A _______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au
_______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au
participants (2)
-
Alex Samad
-
Andrew Cox