Page 1 of 1

[Solved] Testing "for"

Posted: Wed Feb 18, 2009 3:03 pm
by ronaldoo
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?

Re: Testing "for"

Posted: Wed Feb 18, 2009 3:05 pm
by mrz
put 333/333 in quotes

Re: Testing "for"

Posted: Wed Feb 18, 2009 3:35 pm
by ronaldoo
put 333/333 in quotes
Humm, thank you so much!