Code: Select all
/interface> print count-only where !comment
3
How to produce the same old result using current version?
What condition should be put in where to check if comment is empty?
/interface> print count-only where !comment
3
print where comment=""
/interface wireless access-list> print count-only where !(comment)
0
/interface wireless access-list> print count-only where (comment)
0
/interface wireless access-list> print count-only where comment
0
/interface wireless access-list> print count-only where comment=""
0
/interface wireless access-list> print count-only where comment=nil
0
/interface wireless access-list> print count-only where comment=nothing
0
/interface wireless access-list> print count-only where comment=:nothing
0
/interface wireless access-list> print count-only where comment=:nil
0
/interface wireless access-list> print count-only where !comment
0
/interface wireless access-list> print count-only where (!comment)
0
/interface wireless access-list> print count-only where not comment
0
/interface wireless access-list> print count-only where comment~""
89
/interface wireless access-list> print count-only where !comment~""
2
I think that's better this way:/interface wireless access-list> print count-only where !comment~""
2[/code] This returned numer of items without comment.
This is working on ROS 6.6. I will see for how long will it work (until MikroTik change it again)....
foreach i in=[ /tool user-manager user find where comment=[] ] do={ put [ /tool user-manager user get $i username ] }
... where !(comment=[])
[admin@mt] > :put [ :typeof [] ]
nil