Problem with script and subnet mask

Hi,
I’ve got simple script(it is a part of foreach loop):
:local ip [/queue simple get $i target]; #return 10.0.1.10/32
:put $ip;
:for i from=( [:len $ip] - 1) to=0 do={
:if ( [:pick $ip $i] = “/”) do={
:put [:pick $ip 0 $i]
}
}
:put $ip;This is the effect of this script:

10.0.1.10/32
10.0.1.10/32

But if I change :local ip [/queue simple get $i target]; to :local ip “10.0.1.10/32” it works ok.

What is bad?

Try the :tostr command. Works for me.

:local ip [:tostr [/queue simple get $i target]]
:put [:len $ip]

Thank you, It works.