I have mikrotik system in the user comment i add comment for every user
but i need the first two characters only
like this
25@ Upload=0 MB - Download=0 MB - Total=0 MB or Total 0 GB
i need “25” only (in the 3rd line)
and i made this script but it didn’t work probably
/ip hotspot user {
:foreach u in=[:find [:len comment] > 2] do={
:local a [get value-name=comment $u]
:local name [:pick $a 0 [:find $a “@”]]
:put $name
}}
thanks for helping me ![]()