The first line use “get 1”, however that’s not an *id so it depends on print being called to establish the index of 1. Using “get ([find]->0)” or “get [find name=queue1]” instead avoid needing.
There can be multiple “target” from “/queue simple get”, and :find does not work with arrays & so need use get the 1st element listed as “target” first
With this solution, I have a result : “$ipaddress”
The first line use “get 1”, however that’s not an *id so it depends on print being called to establish the index of 1. Using “get ([find]->0)” or “get [find name=queue1]” instead avoid needing.
It was for the example, I understood that the get 1 corresponded to the number present in this menu on Winbox
There can be multiple “target” from “/queue simple get”, and :find does not work with arrays & so need use get the 1st element listed as “target” first
Indeed, you have found my problem, I had not seen this return as an array but a character string !
Anything in winbox with the <> up/down arrows next the control is generally an array in scripting. Some commands will “cast” an array of one element to str/num, but :find doesn’t… So it’s a bit confusing.