help get wrong result

i use script below but get wrong result when run script
assume data in comment = 10
equation = comment value * 1000
the result must be = 10 * 1000 = 10000
i get result =10 why??
please help me to solve this problem

Script ;
:foreach i in=[/ip hotspot user find ] do={
:local comment [/ip hotspot user get value-name=comment $i ]
:local downquotamb [:tostr [:pick $comment 0 3]]
:local downquota [$downquotamb * 1000]
:put $downquota
}

Result :
[admin@MikroTik] > :foreach i in=[/ip hotspot user find ] do={
{… :local comment [/ip hotspot user get value-name=comment $i ]
{… :local downquotamb [:tostr [:pick $comment 0 3]]
{… :local downquota [$downquotamb * 1000]
{… :put $downquota
{… }
cou

10

:tonum and () instead of for arithmetic stuff.

many thanks my brother
i changed scrip to arithmetic stuff but get same result " 10 "
please help me

Script :

:foreach i in=[/ip hotspot user find ] do={
:local comment [/ip hotspot user get value-name=comment $i ]
:local downq [:tostr [:pick $comment 0 3]]
:local downquotamb (:tonum (:pick $downq ))
:local downquota [$downquotamb * 1000]
:put $downquota
}

:local downquotamb [:tonum [:pick $comment 0 3]]
:local downquota ($downquotamb * 1000)

Something like that. I can’t test it on the moment but this what the manual stated.

I did not know that I had an other brother. :wink:

Many Thanks … amazing
Script Working
thank you

Great news. Really good to see that you solved it on your ‘own’. :wink:

hello

i need scrip can drop the interface when show specific ip address on dst-nat please

its urgent case

thank you