I am wanting to use the following script to change simple queue settings.
Where my confusion is even though :put shows the value of counter is 0 the script exits with “no such item”
I used :global to test line by line from the console.
I have tried {} () around $counter but still get “no such item”
To iterate through items, use ‘for’. While you refer to IDs of items via increasing numbers on the command line, in scripts IDs work differently. Additionally, ‘print’ works differently in scripts.
OK but my problem is the last two entries are default queues that I do not want to change.
That was why I was trying to use the count so I could only change the queues up to them.