Find specific firewall nat

I would like to check if firewall nat is exists, I would like to find it by 3 parameters “chain,action,out-interface” and get return only if there is no other parameters except the 3 parameters that I wrote…

/ip firewall nat find where chain=srcnat and action=masquerade and out-interface=“bridge-local”

there is a way to do that?

Similar as you write:

/ip firewall nat print where chain=srcnat && action=masquerade && out-interface="bridge-local"

If you need it on a script, syntax changes but essentially it is the same:


:if ([:len [/ip firewall nat find chain=srcnat && action=masquerade && out-interface="bridge-local"] ] > 0) do={  
	:delay 5s;
}