I wan to print (:log info) all hotspot users account who DO NOT have word "special" in comments.
For example, Currently users have following comments:
user1 = special library
user2 = special xyz garden
user3 = 123 special lobby
user4 = ordinary single
user5 = double ordinary
Now I want to print only users name who DONOT have special in there comments section.
I am trying with this with no luck
Code: Select all
:local username
:foreach i in=[/ip hotspot user find] do {
:set username ( username [ip hotspot user get $i name])
:if ([/ip hotspot user get [/ip hotspot user find name=$username] comment ] ~"special") do {
:log warning "$username..."
}}}}}
howto correct?