Community discussions

MikroTik App
 
celicas
just joined
Topic Author
Posts: 12
Joined: Tue Nov 04, 2014 2:59 pm

"Not-Equal" operator in ROS parameter using Variable

Thu Jun 04, 2015 7:08 pm

"Not-Equal" operator for e.g. "in-interface" works fine
/ip firewall filter> :local iface e5 ; add in-interface=!e5 chain=prerouting
"Equal" operator using variable also works fine
/ip firewall filter> :local iface e5 ; add in-interface=$iface chain=prerouting
"Not-Equal" operator is not accepted using variable
/ip firewall filter> :local iface e5 ; add in-interface=!$iface chain=prerouting
expected interface value (line 1 column 37)
/ip firewall filter> :local iface e5 ; add in-interface=!($iface) chain=prerouting
expected interface value (line 1 column 37)
/ip firewall filter> :local iface e5 ; add in-interface!=($iface) chain=prerouting
expected end of command (line 1 column 23)
Thank you in advance!
 
User avatar
emils
Forum Veteran
Forum Veteran
Posts: 906
Joined: Thu Dec 11, 2014 8:53 am

Re: "Not-Equal" operator in ROS parameter using Variable

Fri Jun 05, 2015 9:53 am

/ip firewall filter> :local iface e5 ; add in-interface="!$iface" chain=prerouting
 
celicas
just joined
Topic Author
Posts: 12
Joined: Tue Nov 04, 2014 2:59 pm

Re: "Not-Equal" operator in ROS parameter using Variable

Fri Jun 05, 2015 3:42 pm

Thank you!