Code: Select all
/ip hotspot
:foreach i in=[user find where name!="admin" and name!="default-trial" and disabled=no and comment!=" "] do={
:local aUsrcomm [user get $i comment]
:local aUsrcomm [:toarray $aUsrcomm];
:local itotal [:tonum ($aUsrcomm->1)];
:log info $itotal;
}
5
5
5
5
5
the output should be 25.