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