wrong use of "find" ???

find always return all list… and arguments dont mean anything…
what i doing wrong?

[rionet@MikroTik] >> /ip firewall address-list print 
Flags: X - disabled, D - dynamic 
 #   LIST                                                         ADDRESS                        
 0   ;;; 123
     server_link                                                  192.168.111.0/24               
 1   ;;; 789
     pppoe_clients_1                                              192.168.7.10-192.168.7.99      
 2   ;;; 456
     pptp_clients                                                 192.168.9.10-192.168.9.99      
[rionet@MikroTik] >> :put [/ip firewall address-list find comment=456]
*15;*16;*17             - find returns 3 items!!!
[rionet@MikroTik] >> :put [/ip firewall address-list get [/ip firewall address-list find comment=4
56] comment ]  
123
[rionet@MikroTik] >> :put [/ip firewall address-list get [/ip firewall address-list find comment="
456"] comment ]  
123
[rionet@MikroTik] >>

4.1 beta

have you tried to use quotes? like find=“whatever”

:open_mouth:

2 janisk
yes, im tried to use quotes - see last command at code block

and i probe many various sintaxis but find always return all list.

2 Chupaka
it is version bug? very strange.. bugs should be in new features.. because other code copy-pasted..

If I remember correctly 4.0 beta has a bug where find is not working correctly.
You can downgrade to v3.22, find works in this version for sure.

ok, thanks!
i try to downgrade.