Community discussions

MikroTik App
 
ronaldoo
just joined
Topic Author
Posts: 18
Joined: Fri Aug 08, 2008 11:01 pm

[Solved] Testing "for"

Wed Feb 18, 2009 3:03 pm

Hello guys, I'm trying to make this script work:
:foreach i in=[/queue simple find ] do={ :if ([/queue simple get $i max-limit]=333/333) do={ :put [/queue simple set $i max-limit=50000/50000] }}
It's to find each queue that have the max-limit value equals "333" and change it to "50000", but didn't work atm.
Anyone can show me what I miss?
Last edited by ronaldoo on Wed Feb 18, 2009 11:12 pm, edited 1 time in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7198
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Testing "for"

Wed Feb 18, 2009 3:05 pm

put 333/333 in quotes
 
ronaldoo
just joined
Topic Author
Posts: 18
Joined: Fri Aug 08, 2008 11:01 pm

Re: Testing "for"

Wed Feb 18, 2009 3:35 pm

put 333/333 in quotes
Humm, thank you so much!